freebsd-ports/devel/directfb/files/patch-lib-direct-trace.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

20 lines
823 B
C

--- lib/direct/trace.c
+++ lib/direct/trace.c
@@ -90,7 +90,7 @@ struct __D_DirectTraceBuffer {
static DirectTraceBuffer *buffers[MAX_BUFFERS];
static int buffers_num = 0;
-#ifdef HAVE_DECL_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
+#if HAVE_DECL_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
static pthread_mutex_t buffers_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
#else
static pthread_mutex_t buffers_lock = PTHREAD_MUTEX_INITIALIZER;
@@ -176,7 +176,7 @@ typedef struct {
} SymbolTable;
static DirectLink *tables = NULL;
-#ifdef HAVE_DECL_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
+#if HAVE_DECL_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
static pthread_mutex_t tables_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
#else
static pthread_mutex_t tables_lock = PTHREAD_MUTEX_INITIALIZER;