wins: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 13:08:05 +0000 (14:08 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Nov 2018 22:19:22 +0000 (23:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
nsswitch/wins.c

index ddbbb03d8445a3188b5e26da168d2d6f2890f870..371ab78d2f877712e923b91302f7c55653c78f82 100644 (file)
 #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;