1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

wins: 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>
This commit is contained in:
Andreas Schneider 2018-11-20 14:08:05 +01:00 committed by Gary Lockyer
parent c56b16906c
commit 4dd2349c11

View File

@ -27,11 +27,11 @@
#include <ns_daemon.h> #include <ns_daemon.h>
#endif #endif
#if HAVE_PTHREAD_H #ifdef HAVE_PTHREAD_H
#include <pthread.h> #include <pthread.h>
#endif #endif
#if HAVE_PTHREAD #ifdef HAVE_PTHREAD
static pthread_mutex_t wins_nss_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t wins_nss_mutex = PTHREAD_MUTEX_INITIALIZER;
#endif #endif
@ -251,7 +251,7 @@ _nss_wins_gethostbyname_r(const char *hostname,
size_t namelen; size_t namelen;
int rc; int rc;
#if HAVE_PTHREAD #ifdef HAVE_PTHREAD
pthread_mutex_lock(&wins_nss_mutex); pthread_mutex_lock(&wins_nss_mutex);
#endif #endif
@ -353,7 +353,7 @@ _nss_wins_gethostbyname_r(const char *hostname,
out: out:
#if HAVE_PTHREAD #ifdef HAVE_PTHREAD
pthread_mutex_unlock(&wins_nss_mutex); pthread_mutex_unlock(&wins_nss_mutex);
#endif #endif
return nss_status; return nss_status;