From: Ondřej Surý Date: Tue, 18 Jun 2024 13:21:10 +0000 (+0200) Subject: Remove ISC_MUTEX_INITIALIZER X-Git-Tag: alessio/regression/026024a6ae~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f158884344b6769028b802a549ef1b8c03758fff;p=thirdparty%2Fbind9.git Remove ISC_MUTEX_INITIALIZER It's hard to get it right on different platforms and it's unused in BIND 9 anyway. --- diff --git a/lib/isc/include/isc/mutex.h b/lib/isc/include/isc/mutex.h index 341148a7532..df249223365 100644 --- a/lib/isc/include/isc/mutex.h +++ b/lib/isc/include/isc/mutex.h @@ -23,14 +23,6 @@ #include /* for ISC_R_ codes */ #include -#if ISC_MUTEX_ERROR_CHECK && defined(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP) -#define ISC_MUTEX_INITIALIZER PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP -#elif defined(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) -#define ISC_MUTEX_INITIALIZER PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP -#else -#define ISC_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER -#endif - ISC_LANG_BEGINDECLS /*