int main (int argc, char **argv) {
return ((int*)(&recvmmsg))[argc];
}" HAVE_RECVMMSG)
+ CHECK_C_SOURCE_COMPILES ("#define _GNU_SOURCE
+ #include <fcntl.h>
+ int main (int argc, char **argv) {
+ return ((int*)(&readahead))[argc];
+ }" HAVE_READAHEAD)
ELSE()
CHECK_C_SOURCE_RUNS("
#include <sys/mman.h>
#cmakedefine HAVE_PTHREAD_PROCESS_SHARED 1
#cmakedefine HAVE_PWD_H 1
#cmakedefine HAVE_RDTSC 1
+#cmakedefine HAVE_READAHEAD 1
#cmakedefine HAVE_READPASSPHRASE_H 1
#cmakedefine HAVE_RECVMMSG 1
#cmakedefine HAVE_RUSAGE_SELF 1