diff options
Diffstat (limited to 'nsswitch/wins.c')
-rw-r--r-- | nsswitch/wins.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <ns_daemon.h> #endif -#if HAVE_PTHREAD_H +#ifdef HAVE_PTHREAD_H #include <pthread.h> #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; |