From: Andreas Schneider Date: Tue, 20 Nov 2018 13:08:05 +0000 (+0100) Subject: wins: Use #ifdef instead of #if for config.h definitions X-Git-Tag: tdb-1.3.17~561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dd2349c1171a2c09d6b4cdebe5c3242d4fd67b8;p=thirdparty%2Fsamba.git wins: Use #ifdef instead of #if for config.h definitions Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/nsswitch/wins.c b/nsswitch/wins.c index ddbbb03d844..371ab78d2f8 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -27,11 +27,11 @@ #include #endif -#if HAVE_PTHREAD_H +#ifdef HAVE_PTHREAD_H #include #endif -#if HAVE_PTHREAD +#ifdef HAVE_PTHREAD static pthread_mutex_t wins_nss_mutex = PTHREAD_MUTEX_INITIALIZER; #endif @@ -251,7 +251,7 @@ _nss_wins_gethostbyname_r(const char *hostname, size_t namelen; int rc; -#if HAVE_PTHREAD +#ifdef HAVE_PTHREAD pthread_mutex_lock(&wins_nss_mutex); #endif @@ -353,7 +353,7 @@ _nss_wins_gethostbyname_r(const char *hostname, out: -#if HAVE_PTHREAD +#ifdef HAVE_PTHREAD pthread_mutex_unlock(&wins_nss_mutex); #endif return nss_status;