From 245c8c1c0200a19557fb8e978726e635f7de2c81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 11 Oct 2011 15:17:28 +0200 Subject: [PATCH] s3-waf: fix configure check for HAVE_LINUX_FALLOCATE. Guenther --- source3/wscript | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/source3/wscript b/source3/wscript index 9ef42badca0..6fc81cfd22c 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 - #endif - #include - #define _GNU_SOURCE - #include - #if defined(HAVE_LINUX_FALLOC_H) - #include - #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) -- 2.34.1