From: Witold Kręcicki Date: Mon, 27 Aug 2018 14:41:43 +0000 (+0200) Subject: Include threads.h for thread_local X-Git-Tag: v9.13.3~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=525fd76685371a024bb6269d9934ff9af1b0fdca;p=thirdparty%2Fbind9.git Include threads.h for thread_local --- diff --git a/lib/isc/random.c b/lib/isc/random.c index 3f49cb512f7..c682cbc3f76 100644 --- a/lib/isc/random.c +++ b/lib/isc/random.c @@ -64,6 +64,7 @@ #if defined(HAVE_TLS) #if defined(HAVE_THREAD_LOCAL) +#include 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; diff --git a/lib/isc/xoshiro128starstar.c b/lib/isc/xoshiro128starstar.c index fb71a244190..944e3a92e1f 100644 --- a/lib/isc/xoshiro128starstar.c +++ b/lib/isc/xoshiro128starstar.c @@ -39,6 +39,7 @@ #define _UNLOCK() {}; #if defined(HAVE_THREAD_LOCAL) +#include static thread_local uint32_t seed[4]; #elif defined(HAVE___THREAD) static __thread uint32_t seed[4];