mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 23:42:06 -04:00
Merge branch '496-fix-freebsd-issue' into 'master'
threads.h was missing on C11/thread_local builds Closes #496 See merge request isc-projects/bind9!712
This commit is contained in:
commit
ca0ce1cb42
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue