]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix Windows build by moving #include <pthread.h> to correct #ifdef block
authorOndřej Surý <ondrej@sury.org>
Tue, 4 Jun 2019 08:13:45 +0000 (10:13 +0200)
committerEvan Hunt <each@isc.org>
Wed, 5 Jun 2019 18:17:19 +0000 (11:17 -0700)
lib/isc/include/isc/rwlock.h

index d1a454533987f1caa2e6f52375245052817f80c0..f857c04dea63a7a6e893a9a88166eb7543f2f410 100644 (file)
@@ -14,7 +14,6 @@
 #define ISC_RWLOCK_H 1
 
 #include <inttypes.h>
-#include <pthread.h>
 
 /*! \file isc/rwlock.h */
 
@@ -33,6 +32,7 @@ typedef enum {
 } isc_rwlocktype_t;
 
 #if USE_PTHREAD_RWLOCK
+#include <pthread.h>
 
 struct isc_rwlock {
        pthread_rwlock_t        rwlock;