diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-20 14:07:39 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2018-11-28 23:19:22 +0100 |
commit | c56b16906ce56bebeac8a4f90c7671dee02b144a (patch) | |
tree | 73f13d3ba92223677425df24674e1834d5f43d1c /nsswitch | |
parent | d035f2492e306ddc74b1b9fe533608e0f37a1cd0 (diff) | |
download | samba-c56b16906ce56bebeac8a4f90c7671dee02b144a.tar.gz |
wbclient: 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 'nsswitch')
-rw-r--r-- | nsswitch/wb_common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c index f2672fb1298..ba1138c4549 100644 --- a/nsswitch/wb_common.c +++ b/nsswitch/wb_common.c @@ -27,7 +27,7 @@ #include "system/select.h" #include "winbind_client.h" -#if HAVE_PTHREAD_H +#ifdef HAVE_PTHREAD_H #include <pthread.h> #endif @@ -41,7 +41,7 @@ struct winbindd_context { pid_t our_pid; /* calling process pid */ }; -#if HAVE_PTHREAD +#ifdef HAVE_PTHREAD static pthread_mutex_t wb_global_ctx_mutex = PTHREAD_MUTEX_INITIALIZER; #endif @@ -53,7 +53,7 @@ static struct winbindd_context *get_wb_global_ctx(void) .our_pid = 0 }; -#if HAVE_PTHREAD +#ifdef HAVE_PTHREAD pthread_mutex_lock(&wb_global_ctx_mutex); #endif return &wb_global_ctx; @@ -61,7 +61,7 @@ static struct winbindd_context *get_wb_global_ctx(void) static void put_wb_global_ctx(void) { -#if HAVE_PTHREAD +#ifdef HAVE_PTHREAD pthread_mutex_unlock(&wb_global_ctx_mutex); #endif return; @@ -149,7 +149,7 @@ static void winbind_close_sock(struct winbindd_context *ctx) /* Destructor for global context to ensure fd is closed */ -#if HAVE_DESTRUCTOR_ATTRIBUTE +#ifdef HAVE_DESTRUCTOR_ATTRIBUTE __attribute__((destructor)) #endif static void winbind_destructor(void) |