]> source.dussan.org Git - rspamd.git/commitdiff
Check for async IO support.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Oct 2015 17:50:39 +0000 (18:50 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Oct 2015 17:50:39 +0000 (18:50 +0100)
CMakeLists.txt
config.h.in

index cfaa632da7fe13f662acbdf4574dad637bf138f5..edcfade07f84d22b83dd513675cc3d97821b6f6b 100644 (file)
@@ -758,6 +758,8 @@ 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_INCLUDE_FILES(stropts.h HAVE_STROPS_H)
+CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL_H)
 
 # Check platform API
 CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE)
@@ -819,6 +821,8 @@ CHECK_SYMBOL_EXISTS(sched_yield "sched.h" HAVE_SCHED_YIELD)
 CHECK_SYMBOL_EXISTS(__get_cpuid "cpuid.h" HAVE_GET_CPUID)
 CHECK_SYMBOL_EXISTS(PCRE_CONFIG_JIT "pcre.h" HAVE_PCRE_JIT)
 CHECK_SYMBOL_EXISTS(SOCK_SEQPACKET "sys/types.h;sys/socket.h" HAVE_SOCK_SEQPACKET)
+CHECK_SYMBOL_EXISTS(I_SETSIG "sys/types.h;sys/ioctl.h" HAVE_SETSIG)
+CHECK_SYMBOL_EXISTS(O_ASYNC "sys/types.h;sys/fcntl.h" HAVE_OASYNC)
 
 # Some PCRE implementations are lacking of pcre_jit_exec fast path
 SET(_PCRE_FAST_TEST "
index 472c6bced57ae0a1ace05456b473fe4326bfaebc..04e6416ae4764a85b946dff2f38d16945a7b1a80 100644 (file)
 #cmakedefine HAVE_CPUID_H        1
 #cmakedefine HAVE_DIRENT_H       1
 #cmakedefine HAVE_SOCK_SEQPACKET 1
+#cmakedefine HAVE_SYS_IOCTL_H    1
+#cmakedefine HAVE_STROPS_H       1
+#cmakedefine HAVE_SETSIG         1
+#cmakedefine HAVE_OASYNC         1
 
 /* Configure allocator */
 #define uthash_malloc(sz) g_slice_alloc(sz)