mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
Include threads.h for thread_local
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
|
|
||||||
#if defined(HAVE_TLS)
|
#if defined(HAVE_TLS)
|
||||||
#if defined(HAVE_THREAD_LOCAL)
|
#if defined(HAVE_THREAD_LOCAL)
|
||||||
|
#include <threads.h>
|
||||||
static thread_local isc_once_t isc_random_once = ISC_ONCE_INIT;
|
static thread_local isc_once_t isc_random_once = ISC_ONCE_INIT;
|
||||||
#elif defined(HAVE___THREAD)
|
#elif defined(HAVE___THREAD)
|
||||||
static __thread isc_once_t isc_random_once = ISC_ONCE_INIT;
|
static __thread isc_once_t isc_random_once = ISC_ONCE_INIT;
|
||||||
|
@@ -39,6 +39,7 @@
|
|||||||
#define _UNLOCK() {};
|
#define _UNLOCK() {};
|
||||||
|
|
||||||
#if defined(HAVE_THREAD_LOCAL)
|
#if defined(HAVE_THREAD_LOCAL)
|
||||||
|
#include <threads.h>
|
||||||
static thread_local uint32_t seed[4];
|
static thread_local uint32_t seed[4];
|
||||||
#elif defined(HAVE___THREAD)
|
#elif defined(HAVE___THREAD)
|
||||||
static __thread uint32_t seed[4];
|
static __thread uint32_t seed[4];
|
||||||
|
Reference in New Issue
Block a user