summaryrefslogtreecommitdiffstats
path: root/source3/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript7
1 files 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 <unistd.h>
-#endif
-#include <fcntl.h>],
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('''