summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript9
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