mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 14:49:20 -04:00
protect with #ifdef HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
This commit is contained in:
parent
af669cb4fd
commit
42580072de
1 changed files with 2 additions and 0 deletions
|
|
@ -263,9 +263,11 @@ pthread_mutexattr_t isc__mutex_attrs = {
|
|||
|
||||
#if !(ISC_MUTEX_DEBUG && defined(PTHREAD_MUTEX_ERRORCHECK)) && !ISC_MUTEX_PROFILE
|
||||
|
||||
#ifdef HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
|
||||
static isc_boolean_t attr_initialized = ISC_FALSE;
|
||||
static pthread_mutexattr_t attr;
|
||||
static isc_once_t once_attr = ISC_ONCE_INIT;
|
||||
#endif /* HAVE_PTHREAD_MUTEX_ADAPTIVE_NP */
|
||||
|
||||
#ifdef HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue