blob: 5eb5d212d5411abb87823ece9c75870ac417c62d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- Sources/Core/System/Unix/mutex_pthread.cpp.orig Sat Sep 6 05:33:06 2003
+++ Sources/Core/System/Unix/mutex_pthread.cpp Mon Sep 8 05:08:56 2003
@@ -32,11 +32,7 @@
// suck:
extern "C"
{
-#ifdef __FreeBSD__
- int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind);
-#else
int pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind);
-#endif
}
CL_Mutex *CL_Mutex::create()
@@ -59,7 +55,7 @@
# define PTHREAD_MUTEX_RECURSIVE_NP
#endif
-#ifdef PTHREAD_MUTEX_RECURSIVE_NP
+#ifndef PTHREAD_MUTEX_RECURSIVE_NP
// FreeBSD & cygwin
pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE);
#else
|