diff options
author | Günther Deschner <gd@samba.org> | 2011-10-11 15:20:42 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-10-11 19:50:31 +0200 |
commit | d6cb58e18d7f8f133859b000ab90ea2a3b79e48d (patch) | |
tree | c37df631b665ad0f97250eb8065bf86d89c814eb /source3 | |
parent | 3522f9dc4b45cc01f19d09a5cee3fbbb4f04411f (diff) | |
download | samba-d6cb58e18d7f8f133859b000ab90ea2a3b79e48d.tar.gz samba-d6cb58e18d7f8f133859b000ab90ea2a3b79e48d.tar.bz2 samba-d6cb58e18d7f8f133859b000ab90ea2a3b79e48d.zip |
s3-waf: fix configure check for HAVE_LINUX_READAHEAD.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/wscript b/source3/wscript index dd77c3f058..4432585ae0 100644 --- a/source3/wscript +++ b/source3/wscript @@ -348,13 +348,10 @@ return acl_get_perm_np(permset_d, perm); msg="Checking whether the Linux 'fallocate64' function is available", headers='unistd.h sys/types.h fcntl.h linux/falloc.h') 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") + msg="Checking whether Linux readahead is available", + headers='unistd.h fcntl.h') conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True) conf.CHECK_CODE(''' |