From: Andreas Schneider Date: Wed, 21 Nov 2018 10:37:26 +0000 (+0100) Subject: s4:smbd: Use #ifdef instead of #if for config.h definitions X-Git-Tag: tdb-1.3.17~545 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=342c3b7dae269645a7629719ad6c1948f2e0e09e;p=thirdparty%2Fsamba.git s4:smbd: Use #ifdef instead of #if for config.h definitions Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/source4/smbd/process_prefork.c b/source4/smbd/process_prefork.c index 49446d23b5a..a7222079624 100644 --- a/source4/smbd/process_prefork.c +++ b/source4/smbd/process_prefork.c @@ -121,7 +121,7 @@ static void sigterm_signal_handler(struct tevent_context *ev, int signum, int count, void *siginfo, void *private_data) { -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { /* * We're the process group leader, send diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c index d25538716ba..b1cc7de155d 100644 --- a/source4/smbd/process_standard.c +++ b/source4/smbd/process_standard.c @@ -68,7 +68,7 @@ static void sigterm_signal_handler(struct tevent_context *ev, int signum, int count, void *siginfo, void *private_data) { -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { /* * We're the process group leader, send diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 5eca0b9e869..57e05dccade 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -128,7 +128,7 @@ static void sig_hup(int sig) static void sig_term(int sig) { -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { /* * We're the process group leader, send @@ -198,7 +198,7 @@ static void server_stdin_handler(struct tevent_context *event_ctx, if (read(0, &c, 1) == 0) { DBG_ERR("%s: EOF on stdin - PID %d terminating\n", state->binary_name, (int)getpid()); -#if HAVE_GETPGRP +#ifdef HAVE_GETPGRP if (getpgrp() == getpid()) { DBG_ERR("Sending SIGTERM from pid %d\n", (int)getpid()); @@ -594,7 +594,7 @@ static int binary_smbd_main(const char *binary_name, stdin_event_flags = 0; } -#if HAVE_SETPGID +#ifdef HAVE_SETPGID /* * If we're interactive we want to set our own process group for * signal management, unless --no-process-group specified.