diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bb4b2ec..5ef3b2ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,7 @@ include(CheckCXXCompilerFlag) include(CheckCSourceCompiles) include(CheckCSourceRuns) include(CMakeDependentOption) +include(CheckCXXSymbolExists) check_include_files(ifaddrs.h ZMQ_HAVE_IFADDRS) check_include_files(windows.h ZMQ_HAVE_WINDOWS) @@ -51,6 +52,9 @@ check_library_exists(ws2 printf "" HAVE_WS2) check_library_exists(rpcrt4 printf "" HAVE_RPCRT4) # UuidCreateSequential check_library_exists(iphlpapi printf "" HAVE_IPHLAPI) # GetAdaptersAddresses +check_cxx_symbol_exists(SO_PEERCRED sys/socket.h ZMQ_HAVE_SO_PEERCRED) +check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED) + find_library(RT_LIBRARY rt) find_package(Threads) @@ -630,6 +634,7 @@ list(APPEND tests test_abstract_ipc test_fork test_proxy + test_filter_ipc ) endif() diff --git a/builds/cmake/platform.hpp.in b/builds/cmake/platform.hpp.in index 4a8ae6f0..19f9f15e 100644 --- a/builds/cmake/platform.hpp.in +++ b/builds/cmake/platform.hpp.in @@ -19,6 +19,9 @@ #cmakedefine ZMQ_HAVE_EVENTFD #cmakedefine ZMQ_HAVE_IFADDRS +#cmakedefine ZMQ_HAVE_SO_PEERCRED +#cmakedefine ZMQ_HAVE_LOCAL_PEERCRED + #cmakedefine ZMQ_HAVE_SOCK_CLOEXEC #cmakedefine ZMQ_HAVE_SO_KEEPALIVE #cmakedefine ZMQ_HAVE_TCP_KEEPCNT