summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-04-26 12:54:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:01 -0500
commitd12e9c4c3b604f0af8fce49ca685a10474c253f8 (patch)
treed8511ac96c3317ec5ae810e3cf96f92e4e8bc3ad
parent23cf97680bf957b78464316af4c26f39d65e299a (diff)
downloadsamba-d12e9c4c3b604f0af8fce49ca685a10474c253f8.tar.gz
samba-d12e9c4c3b604f0af8fce49ca685a10474c253f8.tar.bz2
samba-d12e9c4c3b604f0af8fce49ca685a10474c253f8.zip
r15277: - fix the build on netbsd, where stdlib.h has the setproctitle() prototype
but --with-setproctitle wasn't used metze (This used to be commit 0754154f5154e8285608c7f17e15aa223f04adea)
-rw-r--r--source4/smbd/process_standard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c
index f5dda11680..a426a2473b 100644
--- a/source4/smbd/process_standard.c
+++ b/source4/smbd/process_standard.c
@@ -39,8 +39,9 @@
#include <setproctitle.h>
#endif
#else
-static int setproctitle(const char *fmt, ...) PRINTF_ATTRIBUTE(1, 2);
-static int setproctitle(const char *fmt, ...)
+#define setproctitle none_setproctitle
+static int none_setproctitle(const char *fmt, ...) PRINTF_ATTRIBUTE(1, 2);
+static int none_setproctitle(const char *fmt, ...)
{
return 0;
}