s3-waf: fix configure check for HAVE_LINUX_FALLOCATE64.
authorGünther Deschner <gd@samba.org>
Tue, 11 Oct 2011 13:18:08 +0000 (15:18 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 11 Oct 2011 17:50:31 +0000 (19:50 +0200)
Guenther

source3/wscript

index 6fc81cfd22ce80defa0a7a219501fd2a26a67766..dd77c3f058bb046067fc6765fb1a009ead5bae31 100644 (file)
@@ -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>