diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source3/wscript b/source3/wscript index 9ef42badca..6fc81cfd22 100644 --- a/source3/wscript +++ b/source3/wscript @@ -337,18 +337,10 @@ return acl_get_perm_np(permset_d, perm); if conf.CONFIG_SET('HAVE_FALLOCATE'): conf.CHECK_CODE(''' - #if defined(HAVE_UNISTD_H) - #include <unistd.h> - #endif - #include <sys/types.h> - #define _GNU_SOURCE - #include <fcntl.h> - #if defined(HAVE_LINUX_FALLOC_H) - #include <linux/falloc.h> - #endif int ret = fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 10);''', 'HAVE_LINUX_FALLOCATE', - msg="Checking whether the Linux 'fallocate' function is available") + msg="Checking whether the Linux 'fallocate' function is available", + headers='unistd.h sys/types.h fcntl.h linux/falloc.h') if conf.CONFIG_SET('HAVE_FALLOCATE64'): conf.CHECK_CODE(''' #if defined(HAVE_UNISTD_H) |