From 525fd76685371a024bb6269d9934ff9af1b0fdca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Mon, 27 Aug 2018 16:41:43 +0200 Subject: [PATCH] Include threads.h for thread_local --- lib/isc/random.c | 1 + lib/isc/xoshiro128starstar.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/isc/random.c b/lib/isc/random.c index 3f49cb512f..c682cbc3f7 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 fb71a24419..944e3a92e1 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];