blob: 782f19480ee4f4dbea15f0fa9ed0dfe019574e84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- os/linux/linux.c.orig Tue Apr 17 18:12:00 2007
+++ os/linux/linux.c Tue Apr 17 18:13:10 2007
@@ -122,7 +122,11 @@
#ifdef USE_MULTITHREADING
pthread_mutexattr_init(&attr);
#ifndef OSX
+#ifndef PTHREAD_MUTEX_RECURSIVE_NP
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+#else
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+#endif
#endif /* !OSX */
#endif /* USE_MULTITHREADING */
return psOpenMalloc(MAX_MEMORY_USAGE);
|