4711ced926
PR: ports/146815 Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com> (maintainer)
14 lines
559 B
C
14 lines
559 B
C
--- lib/direct/interface.c
|
|
+++ lib/direct/interface.c
|
|
@@ -71,7 +71,11 @@ typedef struct {
|
|
int references;
|
|
} DirectInterfaceImplementation;
|
|
|
|
+#if HAVE_DECL_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
|
|
static pthread_mutex_t implementations_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
|
+#else
|
|
+static pthread_mutex_t implementations_mutex = PTHREAD_MUTEX_INITIALIZER;
|
|
+#endif
|
|
static DirectLink *implementations = NULL;
|
|
|
|
/**************************************************************************************************/
|