From 275602c0ea1fd991403ec2e2fae62de9d71ad7f0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 3 Oct 2015 16:09:58 +0100 Subject: [PATCH] Fix dirent include. --- CMakeLists.txt | 1 + config.h.in | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index aba09f668..448a09b0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/config.h.in b/config.h.in index 695b43856..da476a758 100644 --- a/config.h.in +++ b/config.h.in @@ -230,6 +230,7 @@ #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) @@ -447,6 +448,10 @@ #include #endif +#ifdef HAVE_DIRENT_H +#include +#endif + #include #include #ifdef HAVE_SIGINFO_H -- 2.39.5