From 4dd2349c1171a2c09d6b4cdebe5c3242d4fd67b8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 Nov 2018 14:08:05 +0100 Subject: wins: Use #ifdef instead of #if for config.h definitions Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- nsswitch/wins.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nsswitch') 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; -- cgit v1.2.1