2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Include threads.h for thread_local

This commit is contained in:
Witold Kręcicki
2018-08-27 16:41:43 +02:00
parent 760182271e
commit 525fd76685
2 changed files with 2 additions and 0 deletions

View 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;