Browse Source

[Minor] Add recvmmsg detection

tags/2.6
Vsevolod Stakhov 4 years ago
parent
commit
b488a309f5
2 changed files with 6 additions and 0 deletions
  1. 5
    0
      CMakeLists.txt
  2. 1
    0
      config.h.in

+ 5
- 0
CMakeLists.txt View File

@@ -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 <sys/socket.h>
int main (int argc, char **argv) {
return ((int*)(&recvmmsg))[argc];
}" HAVE_RECVMMSG)
ELSE()
CHECK_C_SOURCE_RUNS("
#include <sys/mman.h>

+ 1
- 0
config.h.in View File

@@ -83,6 +83,7 @@
#cmakedefine HAVE_PWD_H 1
#cmakedefine HAVE_RDTSC 1
#cmakedefine HAVE_READPASSPHRASE_H 1
#cmakedefine HAVE_RECVMMSG 1
#cmakedefine HAVE_RUSAGE_SELF 1
#cmakedefine HAVE_SA_SIGINFO 1
#cmakedefine HAVE_SANE_SHMEM 1

Loading…
Cancel
Save