summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-11 15:17:28 +0200
committerGünther Deschner <gd@samba.org>2011-10-11 19:50:31 +0200
commit245c8c1c0200a19557fb8e978726e635f7de2c81 (patch)
tree0a240f0eeb81d43fb4edbd2cd31193634e6360e5 /source3/wscript
parent028cf00293ad124e32b737072045beb506f5bd18 (diff)
downloadsamba-245c8c1c0200a19557fb8e978726e635f7de2c81.tar.gz
samba-245c8c1c0200a19557fb8e978726e635f7de2c81.tar.bz2
samba-245c8c1c0200a19557fb8e978726e635f7de2c81.zip
s3-waf: fix configure check for HAVE_LINUX_FALLOCATE.
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript12
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)