]> source.dussan.org Git - rspamd.git/commitdiff
Fix dirent include.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Oct 2015 15:09:58 +0000 (16:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Oct 2015 15:09:58 +0000 (16:09 +0100)
CMakeLists.txt
config.h.in

index aba09f66898f6c1a9b332afa76b97058ed91f3cb..448a09b0ae562995db46f0b2ac7a18fd1f33b969 100644 (file)
@@ -757,6 +757,7 @@ CHECK_INCLUDE_FILES(aio.h HAVE_AIO_H)
 CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H)
 CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)
 CHECK_INCLUDE_FILES(cpuid.h HAVE_CPUID_H)
+CHECK_INCLUDE_FILES(dirent.h HAVE_DIRENT_H)
 
 # Check platform API
 CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE)
index 695b4385603a28988e380e8cee97504b6c582595..da476a7587afe05d57af9b25974b40a4e6ad5b52 100644 (file)
 #cmakedefine HAVE_PCRE_JIT_FAST  1
 #cmakedefine HAVE_GET_CPUID      1
 #cmakedefine HAVE_CPUID_H        1
+#cmakedefine HAVE_DIRENT_H       1
 
 /* Configure allocator */
 #define uthash_malloc(sz) g_slice_alloc(sz)
 #include <sched.h>
 #endif
 
+#ifdef HAVE_DIRENT_H
+#include <dirent.h>
+#endif
+
 #include <errno.h>
 #include <signal.h>
 #ifdef HAVE_SIGINFO_H