diff options
author | Günther Deschner <gd@samba.org> | 2011-02-16 17:55:26 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-02-16 18:39:40 +0100 |
commit | 9d78512b2bb85547f955552801d8770f92e0b2f5 (patch) | |
tree | 61a187e9eb24a79ea7fa1ad6f807f73ed1bcf762 /source3/wscript | |
parent | 1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3 (diff) | |
download | samba-9d78512b2bb85547f955552801d8770f92e0b2f5.tar.gz samba-9d78512b2bb85547f955552801d8770f92e0b2f5.tar.bz2 samba-9d78512b2bb85547f955552801d8770f92e0b2f5.zip |
s3-waf: add check for posix_fadvise().
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index dc77c12fb1..dc612724f1 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1067,6 +1067,16 @@ exit(1); conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_UMTIME'): conf.DEFINE('HAVE_STAT_HIRES_TIMESTAMPS', '1') + 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') + default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin vfs_default |