diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-14 19:34:50 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-14 19:34:50 +0300 |
commit | 44311f4235463a8d4d3c4128242bbd7c9d2a203b (patch) | |
tree | 61cf649234696840338a76e6c83a8d5b8f45460f /CMakeLists.txt | |
parent | 4499fc92189905fde71139822d784ab7819b181c (diff) | |
download | rspamd-44311f4235463a8d4d3c4128242bbd7c9d2a203b.tar.gz rspamd-44311f4235463a8d4d3c4128242bbd7c9d2a203b.zip |
Detect and use fallocate/posix_fallocate.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bf8884a8..3e6c4fd79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -656,6 +656,7 @@ CHECK_INCLUDE_FILES(grp.h HAVE_GRP_H) CHECK_INCLUDE_FILES(glob.h HAVE_GLOB_H) CHECK_INCLUDE_FILES(poll.h HAVE_POLL_H) CHECK_INCLUDE_FILES(sys/sendfile.h HAVE_SYS_SENDFILE_H) +CHECK_INCLUDE_FILES(linux/falloc.h HAVE_LINUX_FALLOC_H) # Some dependencies IF(HAVE_SYS_WAIT_H) @@ -690,6 +691,8 @@ CHECK_SYMBOL_EXISTS(MAP_ANON sys/mman.h HAVE_MMAP_ANON) CHECK_SYMBOL_EXISTS(MAP_NOCORE sys/mman.h HAVE_MMAP_NOCORE) CHECK_SYMBOL_EXISTS(O_DIRECT fcntl.h HAVE_O_DIRECT) CHECK_SYMBOL_EXISTS(posix_fadvise fcntl.h HAVE_FADVISE) +CHECK_SYMBOL_EXISTS(posix_fallocate fcntl.h HAVE_POSIX_FALLOCATE) +CHECK_SYMBOL_EXISTS(fallocate fcntl.h HAVE_FALLOCATE) CHECK_SYMBOL_EXISTS(fdatasync unistd.h HAVE_FDATASYNC) CHECK_SYMBOL_EXISTS(_SC_NPROCESSORS_ONLN unistd.h HAVE_SC_NPROCESSORS_ONLN) IF(HAVE_SIGINFO_H) |