diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-20 13:55:49 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2018-11-28 23:19:21 +0100 |
commit | ab5f26f3f3bf14462dd8fbe645397e236640c615 (patch) | |
tree | 98bea795ca6cae1fe81683094373878d98c71164 /ctdb/common | |
parent | a9477eb3bd1faabe182710859201cbacb9f76763 (diff) | |
download | samba-ab5f26f3f3bf14462dd8fbe645397e236640c615.tar.gz |
ctdb: Use #ifdef instead of #if for config.h definitions
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/system.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 <sched.h> #endif -#if HAVE_PROCINFO_H +#ifdef HAVE_PROCINFO_H #include <procinfo.h> #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; |