summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-08-30 01:54:44 +0200
committerDavid Disseldorp <ddiss@samba.org>2014-08-31 21:21:13 +0200
commit2440845acebff3a59ebb54d0ef8cdab39bf71962 (patch)
tree87074f5d83ebcacfb80075982b5b9619c3ca34af /lib/replace/wscript
parent3c28ccc5f1a6f1a33e0cd562fe6a869367149d72 (diff)
downloadsamba-2440845acebff3a59ebb54d0ef8cdab39bf71962.tar.gz
Look for system setproctitle before trying -lbsd.
Change-Id: I390c186d7c1400287c6a18909a5d6587f2052243 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index b90f7752a7a..6f2fb66a2c6 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -288,8 +288,8 @@ struct foo bar = { .y = 'X', .x = 1 };
checklibc=True)
if not conf.CHECK_FUNCS('getpeereid'):
conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
- if not conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h'):
- conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h')
+ if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
+ conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
conf.CHECK_CODE('''
struct ucred cred;