diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-13 16:41:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-13 16:41:11 +0100 |
commit | cee232b61c1e868e41e08392d9752283ab1a5853 (patch) | |
tree | da5216051de6c1b6daf8ae6ec7a61abc6118f84b /CMakeLists.txt | |
parent | 2664f9ef9cf3de116bf97f35edd7f9a3db726f28 (diff) | |
download | rspamd-cee232b61c1e868e41e08392d9752283ab1a5853.tar.gz rspamd-cee232b61c1e868e41e08392d9752283ab1a5853.zip |
[Minor] Add support for readahead(2) call if available
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 816e403bd..118f8806f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -486,6 +486,11 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") 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> |