cache: nftw check - add gnu/darwin source definitions
@@ -4,17 +4,18 @@ include (SafeCheckSymbolExists)
if (DEPENDENCY_PHASE)
plugin_check_if_included ("resolver")
if (NOT_INCLUDED)
- remove_plugin ("cache" "resolver plugin not found (${NOT_INCLUDED})")
+ remove_plugin (cache "resolver plugin not found (${NOT_INCLUDED})")
endif (NOT_INCLUDED)
plugin_check_if_included ("mmapstorage")
if (NOT_INCLUDED)
- remove_plugin ("cache" "mmapstorage plugin not found (${NOT_INCLUDED})")
+ remove_plugin (cache "mmapstorage plugin not found (${NOT_INCLUDED})")
endif (NOT_INCLUDED)
+ add_definitions (-D_GNU_SOURCE -D_DARWIN_C_SOURCE)
safe_check_symbol_exists (nftw "ftw.h" HAVE_NFTW)
if (NOT HAVE_NFTW)
- remove_plugin ("cache" "nftw (ftw.h) not found")
+ remove_plugin (cache "nftw (ftw.h) not found")
endif (NOT HAVE_NFTW)
endif ()
