aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 18:50:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 18:50:39 +0100
commit58171591deaa58372d92dbc9fe8223cceb6bae26 (patch)
treee14e9f44b712b2dd395cb8c3cfc446c4fb3c4c36
parent72602bcabe5de4852cb70b6d55b7bf7c24ded4f9 (diff)
downloadrspamd-58171591deaa58372d92dbc9fe8223cceb6bae26.tar.gz
rspamd-58171591deaa58372d92dbc9fe8223cceb6bae26.zip
Check for async IO support.
-rw-r--r--CMakeLists.txt4
-rw-r--r--config.h.in4
2 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cfaa632da..edcfade07 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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 "
diff --git a/config.h.in b/config.h.in
index 472c6bced..04e6416ae 100644
--- a/config.h.in
+++ b/config.h.in
@@ -232,6 +232,10 @@
#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)