1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

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)
This commit is contained in:
Stefan Metzmacher 2006-04-26 12:54:52 +00:00 committed by Gerald (Jerry) Carter
parent 23cf97680b
commit d12e9c4c3b

View File

@ -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;
}