diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index 2c03c304db..7e02b31f37 100644 --- a/source3/wscript +++ b/source3/wscript @@ -517,6 +517,11 @@ return acl_get_perm_np(permset_d, perm); 'HAVE_LINUX_FALLOCATE', msg="Checking whether the Linux 'fallocate' function is available", headers='unistd.h sys/types.h fcntl.h linux/falloc.h') + conf.CHECK_CODE(''' + int ret = fallocate(0, FALLOC_FL_PUNCH_HOLE, 0, 10);''', + 'HAVE_FALLOC_FL_PUNCH_HOLE', + msg="Checking whether Linux 'fallocate' supports hole-punching", + headers='unistd.h sys/types.h fcntl.h linux/falloc.h') conf.CHECK_CODE(''' ssize_t err = readahead(0,0,0x80000);''', 'HAVE_LINUX_READAHEAD', |