From 694ef3873dece023fe1550d34e36a10b3167415c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Oct 2015 16:56:50 +0100 Subject: [PATCH] Check for SOCK_SEQPACKET definition. --- CMakeLists.txt | 1 + config.h.in | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 72b3e05de..cfaa632da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -818,6 +818,7 @@ CHECK_SYMBOL_EXISTS(getaddrinfo "sys/types.h;sys/socket.h;netdb.h" HAVE_GETADDRI 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) # 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 693a9380e..472c6bced 100644 --- a/config.h.in +++ b/config.h.in @@ -231,6 +231,7 @@ #cmakedefine HAVE_GET_CPUID 1 #cmakedefine HAVE_CPUID_H 1 #cmakedefine HAVE_DIRENT_H 1 +#cmakedefine HAVE_SOCK_SEQPACKET 1 /* Configure allocator */ #define uthash_malloc(sz) g_slice_alloc(sz) -- 2.39.5