freebsd-ports/devel/directfb/files/patch-lib-direct-interface.c
Pav Lucistnik 4711ced926 - Update to 1.4.3
PR:		ports/146815
Submitted by:	Anatoly Borodin <anatoly.borodin@gmail.com> (maintainer)
2010-06-03 08:00:30 +00:00

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;
/**************************************************************************************************/