diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-20 14:08:05 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2018-11-28 23:19:22 +0100 |
commit | 4dd2349c1171a2c09d6b4cdebe5c3242d4fd67b8 (patch) | |
tree | a953414b409dc7fcea0bbecbbb9acfc24843d195 /nsswitch | |
parent | c56b16906ce56bebeac8a4f90c7671dee02b144a (diff) | |
download | samba-4dd2349c1171a2c09d6b4cdebe5c3242d4fd67b8.tar.gz |
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>
Diffstat (limited to 'nsswitch')
-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; |