summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-11 15:18:08 +0200
committerGünther Deschner <gd@samba.org>2011-10-11 19:50:31 +0200
commit3522f9dc4b45cc01f19d09a5cee3fbbb4f04411f (patch)
treebac9d848fc62c1f1c553bea1dab5c0c1c78cfdb5
parent245c8c1c0200a19557fb8e978726e635f7de2c81 (diff)
downloadsamba-3522f9dc4b45cc01f19d09a5cee3fbbb4f04411f.tar.gz
samba-3522f9dc4b45cc01f19d09a5cee3fbbb4f04411f.tar.bz2
samba-3522f9dc4b45cc01f19d09a5cee3fbbb4f04411f.zip
s3-waf: fix configure check for HAVE_LINUX_FALLOCATE64.
Guenther
-rw-r--r--source3/wscript12
1 files changed, 2 insertions, 10 deletions
diff --git a/source3/wscript b/source3/wscript
index 6fc81cfd22..dd77c3f058 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -343,18 +343,10 @@ return acl_get_perm_np(permset_d, perm);
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)
- #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 = fallocate64(0, FALLOC_FL_KEEP_SIZE, 0, 10);''',
'HAVE_LINUX_FALLOCATE64',
- msg="Checking whether the Linux 'fallocate64' function is available")
+ msg="Checking whether the Linux 'fallocate64' function is available",
+ headers='unistd.h sys/types.h fcntl.h linux/falloc.h')
conf.CHECK_CODE('''
#if defined(HAVE_UNISTD_H)
#include <unistd.h>