summaryrefslogtreecommitdiffstats
path: root/source3/wscript
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-07-03 13:34:21 -0700
committerJeremy Allison <jra@samba.org>2012-07-04 02:37:59 +0200
commit6449022d3e05726879f9e268464ae89ce119103e (patch)
tree33c5f7e809de7c73d91febe32bf6eea60e3abb13 /source3/wscript
parent90881da68509ad673c1e921831ef4f36cabb9ea8 (diff)
downloadsamba-6449022d3e05726879f9e268464ae89ce119103e.tar.gz
samba-6449022d3e05726879f9e268464ae89ce119103e.tar.xz
samba-6449022d3e05726879f9e268464ae89ce119103e.zip
Add waf/configure tests for openat.
Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jul 4 02:37:59 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/wscript')
-rwxr-xr-xsource3/wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 5fcf86ea187..12529e5e69a 100755
--- a/source3/wscript
+++ b/source3/wscript
@@ -353,6 +353,11 @@ return acl_get_perm_np(permset_d, perm);
headers='unistd.h fcntl.h')
conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True)
+ conf.CHECK_CODE('int fd = openat(AT_FDCWD, ".", O_RDONLY);',
+ 'HAVE_OPENAT',
+ msg='Checking for openat',
+ headers='fcntl.h')
+
if Options.options.with_aio_support:
conf.CHECK_FUNCS_IN('aio_read', 'aio')
conf.CHECK_FUNCS_IN('aio_read', 'rt')