--- osquery/filesystem/CMakeLists.txt.orig	2015-05-05 00:16:41 UTC
+++ osquery/filesystem/CMakeLists.txt
@@ -4,6 +4,7 @@ if(APPLE)
   )
 
   ADD_OSQUERY_LINK(TRUE "-framework Foundation")
+elseif(FREEBSD)
 elseif(LINUX)
   ADD_OSQUERY_LIBRARY(TRUE osquery_filesystem_linux
     linux/mem.cpp
