summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-22 21:36:35 +0100
committerGünther Deschner <gd@samba.org>2011-02-22 22:36:53 +0100
commit7f0ef4fb4ad430190d143b0ed73fb3a68dde17fd (patch)
tree8060cc498cbde8dbaf97bb4ddc6f2ea187f312e7 /source3/wscript
parent2b53e7eec75b3ea210eceeec4361d14fc4576f27 (diff)
downloadsamba-7f0ef4fb4ad430190d143b0ed73fb3a68dde17fd.tar.gz
samba-7f0ef4fb4ad430190d143b0ed73fb3a68dde17fd.tar.bz2
samba-7f0ef4fb4ad430190d143b0ed73fb3a68dde17fd.zip
s3-waf: add check for sendfile on AIX.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Feb 22 22:36:53 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript23
1 files changed, 23 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index d3b7916fe4..99176ac2e1 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1453,6 +1453,29 @@ main() {
conf.DEFINE('HAVE_SENDFILEV', '1')
conf.DEFINE('SOLARIS_SENDFILE_API', '1')
conf.DEFINE('WITH_SENDFILE', '1')
+ elif (host_os.rfind('aix') > -1):
+ conf.CHECK_CODE('''
+ #include <sys/socket.h>
+ int fromfd, tofd;
+ size_t total=0;
+ struct sf_parms hdtrl;
+ ssize_t nwritten;
+ off64_t offset;
+ hdtrl.header_data = 0;
+ hdtrl.header_length = 0;
+ hdtrl.file_descriptor = fromfd;
+ hdtrl.file_offset = 0;
+ hdtrl.file_bytes = 0;
+ hdtrl.trailer_data = 0;
+ hdtrl.trailer_length = 0;
+ nwritten = send_file(&tofd, &hdtrl, 0);
+ ''',
+ '_HAVE_SENDFILE',
+ msg='Checking for AIX send_file support')
+ if conf.CONFIG_SET('_HAVE_SENDFILE'):
+ conf.DEFINE('HAVE_SENDFILE', '1')
+ conf.DEFINE('AIX_SENDFILE_API', '1')
+ conf.DEFINE('WITH_SENDFILE', '1')
default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
auth_sam auth_unix auth_winbind auth_wbc auth_server