summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorBjörn Jacke <bjacke@samba.org>2019-01-07 00:28:34 +0100
committerJeremy Allison <jra@samba.org>2019-01-08 03:40:29 +0100
commit99c030bce6e246dfa1821a79abe751013b4bd2ef (patch)
tree985f9315259b758d59abc22012f6997f8b420696 /source3/wscript
parenta2402f9714449f9dcb86f40dc178a5b5d8384469 (diff)
downloadsamba-99c030bce6e246dfa1821a79abe751013b4bd2ef.tar.gz
waf: fix waf errors with sendfail detection on Solaris
Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/wscript b/source3/wscript
index 458e46bce3f..ab3031d36ea 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1332,8 +1332,8 @@ main() {
conf.DEFINE('HAVE_SENDFILE', '1')
conf.DEFINE('HPUX_SENDFILE_API', '1')
conf.DEFINE('WITH_SENDFILE', '1')
- elif (host_os.rfind('solaris') > -1):
- conf.CHECK_FUNCS_IN('sendfile', 'sendfilev')
+ elif (host_os.rfind('sunos') > -1):
+ conf.CHECK_FUNCS_IN('sendfilev', 'sendfile')
conf.CHECK_CODE('''
#include <sys/sendfile.h>,
int sfvcnt;
@@ -1353,7 +1353,8 @@ main() {
nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
''',
'_HAVE_SENDFILEV',
- msg='Checking for solaris sendfilev support')
+ msg='Checking for solaris sendfilev support',
+ lib='sendfile')
if conf.CONFIG_SET('_HAVE_SENDFILEV'):
conf.DEFINE('HAVE_SENDFILEV', '1')
conf.DEFINE('SOLARIS_SENDFILE_API', '1')