]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Include threads.h for thread_local
authorWitold Kręcicki <wpk@isc.org>
Mon, 27 Aug 2018 14:41:43 +0000 (16:41 +0200)
committerWitold Kręcicki <wpk@isc.org>
Mon, 27 Aug 2018 14:41:43 +0000 (16:41 +0200)
lib/isc/random.c
lib/isc/xoshiro128starstar.c

index 3f49cb512f706169f02606a364a3c22b66fa6b36..c682cbc3f76536ccf1be1707c6c1996636ff928b 100644 (file)
@@ -64,6 +64,7 @@
 
 #if defined(HAVE_TLS)
 #if defined(HAVE_THREAD_LOCAL)
+#include <threads.h>
 static thread_local isc_once_t isc_random_once = ISC_ONCE_INIT;
 #elif defined(HAVE___THREAD)
 static __thread isc_once_t isc_random_once = ISC_ONCE_INIT;
index fb71a244190694081bedb210cda10cdccff720a3..944e3a92e1fb1d6b26852b29e91237a47c7e2764 100644 (file)
@@ -39,6 +39,7 @@
 #define _UNLOCK() {};
 
 #if defined(HAVE_THREAD_LOCAL)
+#include <threads.h>
 static thread_local uint32_t seed[4];
 #elif defined(HAVE___THREAD)
 static __thread uint32_t seed[4];