mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 06:40:33 -04:00
- Unbreak - Switch to options helpers PR: 185885 Submitted by: hardy.schumacher@gmx.de Approved by: maintainer timeout (anatoly.borodin@gmail.com, 2 years)
14 lines
505 B
C
14 lines
505 B
C
--- lib/direct/interface.c.orig 2016-06-08 05:59:40 UTC
|
|
+++ 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;
|
|
|
|
static inline int
|