git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3522f9d
)
s3-waf: fix configure check for HAVE_LINUX_READAHEAD.
author
Günther Deschner
<gd@samba.org>
Tue, 11 Oct 2011 13:20:42 +0000
(15:20 +0200)
committer
Günther Deschner
<gd@samba.org>
Tue, 11 Oct 2011 17:50:31 +0000
(19:50 +0200)
Guenther
source3/wscript
patch
|
blob
|
history
diff --git
a/source3/wscript
b/source3/wscript
index dd77c3f058bb046067fc6765fb1a009ead5bae31..4432585ae0862d12935641d15bbb62dad33392b3 100644
(file)
--- 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('''
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',
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('''
conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True)
conf.CHECK_CODE('''