From 4c8b9bee14ba9bcf4cc0a00985247fda3a29deef Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 12 Jan 2011 00:49:53 +0100 Subject: s3-waf: add checks for Linux readahead. Guenther --- source3/wscript | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + #endif + #include + 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 -- cgit