[llvm-commits] CVS: llvm/lib/System/Mutex.cpp

Reid Spencer reid at x10sys.com
Sat Jan 20 12:44:54 PST 2007



Changes in directory llvm/lib/System:

Mutex.cpp updated: 1.10 -> 1.11
---
Log message:

For PR808: http://llvm.org/PR808 :
NetBSD also doesn't have pthread_mutexattr_setpshared


---
Diffs of the changes:  (+1 -1)

 Mutex.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/System/Mutex.cpp
diff -u llvm/lib/System/Mutex.cpp:1.10 llvm/lib/System/Mutex.cpp:1.11
--- llvm/lib/System/Mutex.cpp:1.10	Thu Nov  2 01:59:59 2006
+++ llvm/lib/System/Mutex.cpp	Sat Jan 20 14:44:38 2007
@@ -76,7 +76,7 @@
     errorcode = pthread_mutexattr_settype(&attr, kind);
     assert(errorcode == 0);
 
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
     // Make it a process local mutex
     errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
 #endif






More information about the llvm-commits mailing list