summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-09-24 09:20:46 +0200
committerJelmer Vernooij <jelmer@samba.org>2012-09-24 23:06:07 +0200
commitfd8d4ec34785e71de3f8458222d196d454d0e723 (patch)
tree4d2976bb833a3f7e46e43a26ba9841029ebfcbf2 /lib/replace/wscript
parent6641d76562db10e6289c5e819b1296d8f6df37bf (diff)
downloadsamba-fd8d4ec34785e71de3f8458222d196d454d0e723.tar.gz
samba-fd8d4ec34785e71de3f8458222d196d454d0e723.tar.bz2
samba-fd8d4ec34785e71de3f8458222d196d454d0e723.zip
replace: Support setproctitle().
This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index d5b2631cfd..f1f1cefe65 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -193,6 +193,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')
conf.CHECK_CODE('''
struct ucred cred;