openbsd-ports/devel/codeblocks/patches/patch-src_src_prefix_cpp
2010-06-03 16:09:03 +00:00

13 lines
534 B
Plaintext

$OpenBSD: patch-src_src_prefix_cpp,v 1.2 2010/06/03 16:09:03 ajacoutot Exp $
--- src/src/prefix.cpp.orig Sat May 22 12:37:59 2010
+++ src/src/prefix.cpp Tue Jun 1 19:33:44 2010
@@ -230,7 +230,7 @@ br_prepend_prefix (void *symbol, char *path)
#include <pthread.h>
static pthread_key_t br_thread_key;
-#ifdef __FreeBSD__
+#if defined __FreeBSD__ || defined __OpenBSD__
static pthread_once_t br_thread_key_once = {0, (pthread_mutex_t)NULL};//PTHREAD_ONCE_INIT;
#else
static pthread_once_t br_thread_key_once = PTHREAD_ONCE_INIT;