From: Andreas Schneider Date: Tue, 20 Nov 2018 12:55:49 +0000 (+0100) Subject: ctdb: Use #ifdef instead of #if for config.h definitions X-Git-Tag: tdb-1.3.17~571 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab5f26f3f3bf14462dd8fbe645397e236640c615;p=thirdparty%2Fsamba.git ctdb: Use #ifdef instead of #if for config.h definitions Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/ctdb/common/system.c b/ctdb/common/system.c index 51149edbaf5..ab1941124d7 100644 --- a/ctdb/common/system.c +++ b/ctdb/common/system.c @@ -33,11 +33,11 @@ #include "common/logging.h" #include "common/system.h" -#if HAVE_SCHED_H +#ifdef HAVE_SCHED_H #include #endif -#if HAVE_PROCINFO_H +#ifdef HAVE_PROCINFO_H #include #endif @@ -49,7 +49,7 @@ bool set_scheduler(void) { #ifdef _AIX_ -#if HAVE_THREAD_SETSCHED +#ifdef HAVE_THREAD_SETSCHED struct thrdentry64 te; tid64_t ti; @@ -68,7 +68,7 @@ bool set_scheduler(void) } #endif #else /* no AIX */ -#if HAVE_SCHED_SETSCHEDULER +#ifdef HAVE_SCHED_SETSCHEDULER struct sched_param p; p.sched_priority = 1; @@ -92,7 +92,7 @@ bool set_scheduler(void) void reset_scheduler(void) { #ifdef _AIX_ -#if HAVE_THREAD_SETSCHED +#ifdef HAVE_THREAD_SETSCHED struct thrdentry64 te; tid64_t ti; @@ -105,7 +105,7 @@ void reset_scheduler(void) } #endif #else /* no AIX */ -#if HAVE_SCHED_SETSCHEDULER +#ifdef HAVE_SCHED_SETSCHEDULER struct sched_param p; p.sched_priority = 0;