From 028cf00293ad124e32b737072045beb506f5bd18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 11 Oct 2011 15:03:01 +0200 Subject: [PATCH 1/1] s3-waf: fix configure check for HAVE_POSIX_FADVISE. Guenther --- source3/wscript | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source3/wscript b/source3/wscript index 87cc2d4975..9ef42badca 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1078,14 +1078,11 @@ exit(1); define='HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC') conf.CHECK_CODE(''' -#if defined(HAVE_UNISTD_H) -#include -#endif -#include ], ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED); ''', 'HAVE_POSIX_FADVISE', - msg='Checking whether posix_fadvise is available') + msg='Checking whether posix_fadvise is available', + headers='unistd.h fcntl.h') for v in ['_SC_NGROUPS_MAX', '_SC_NPROC_ONLN', '_SC_NPROCESSORS_ONLN', '_SC_PAGESIZE' ]: conf.CHECK_CODE(''' -- 2.34.1