From b488a309f514fecf7cda9bb5ccb53803a5034210 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 1 Jun 2020 15:35:03 +0100 Subject: [Minor] Add recvmmsg detection --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e60b9cf84..0af33f1fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -505,6 +505,11 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") # on a build system. On the other hand, we know that linux has stupid # but compatible shmem support, so we assume this macro as true SET(HAVE_SANE_SHMEM 1) + CHECK_C_SOURCE_COMPILES ("#define _GNU_SOURCE + #include + int main (int argc, char **argv) { + return ((int*)(&recvmmsg))[argc]; + }" HAVE_RECVMMSG) ELSE() CHECK_C_SOURCE_RUNS(" #include -- cgit v1.2.3