r15277: - fix the build on netbsd, where stdlib.h has the setproctitle() prototype
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Apr 2006 12:54:52 +0000 (12:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:05:01 +0000 (14:05 -0500)
  but --with-setproctitle wasn't used

metze

source/smbd/process_standard.c

index f5dda116800b8ffdfa99f433767718405caacbc8..a426a2473bbda5a05f259c788fe53ad29401c96f 100644 (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;
 }