1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3-waf: add checks for Linux readahead.

Guenther
This commit is contained in:
Günther Deschner 2011-01-12 00:49:53 +01:00
parent 4412eb9d00
commit 4c8b9bee14

View File

@ -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