diff options
author | Günther Deschner <gd@samba.org> | 2011-10-11 15:03:01 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-10-11 19:50:31 +0200 |
commit | 028cf00293ad124e32b737072045beb506f5bd18 (patch) | |
tree | 3aafc7c08d74b3ac28ce1b55c8883f892f179877 /source3/wscript | |
parent | 2ecfa0c1aaf59256a25360cd54ea60122caa2b93 (diff) | |
download | samba-028cf00293ad124e32b737072045beb506f5bd18.tar.gz samba-028cf00293ad124e32b737072045beb506f5bd18.tar.bz2 samba-028cf00293ad124e32b737072045beb506f5bd18.zip |
s3-waf: fix configure check for HAVE_POSIX_FADVISE.
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 7 |
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(''' |