diff options
author | Günther Deschner <gd@samba.org> | 2011-01-12 00:49:53 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-12 01:44:22 +0100 |
commit | 4c8b9bee14ba9bcf4cc0a00985247fda3a29deef (patch) | |
tree | 2ef21e71d7673fb5770924befedf97254d4fa01b | |
parent | 4412eb9d008d259cebafa7062d4826d69e67d89c (diff) | |
download | samba-4c8b9bee14ba9bcf4cc0a00985247fda3a29deef.tar.gz samba-4c8b9bee14ba9bcf4cc0a00985247fda3a29deef.tar.bz2 samba-4c8b9bee14ba9bcf4cc0a00985247fda3a29deef.zip |
s3-waf: add checks for Linux readahead.
Guenther
-rw-r--r-- | source3/wscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index 561f65dd70..a0f0d58286 100644 --- a/source3/wscript +++ b/source3/wscript @@ -364,6 +364,15 @@ return acl_get_perm_np(permset_d, perm); int ret = fallocate64(0, FALLOC_FL_KEEP_SIZE, 0, 10);''', 'HAVE_LINUX_FALLOCATE64', msg="Checking whether the Linux 'fallocate64' function is available") + conf.CHECK_CODE(''' + #if defined(HAVE_UNISTD_H) + #include <unistd.h> + #endif + #include <fcntl.h> + ssize_t err = readahead(0,0,0x80000);''', + 'HAVE_LINUX_READAHEAD', + msg="Checking whether Linux readahead is available") + conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True) default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam pdb_ldap auth_sam auth_unix auth_winbind auth_wbc auth_server |