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

Jeff Cohen jeffc at jolt-lang.org
Mon Apr 17 10:55:57 PDT 2006



Changes in directory llvm/lib/System:

Mutex.cpp updated: 1.6 -> 1.7
---
Log message:

Add checks for __OpenBSD__.

---
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.6 llvm/lib/System/Mutex.cpp:1.7
--- llvm/lib/System/Mutex.cpp:1.6	Wed Aug 24 05:07:21 2005
+++ llvm/lib/System/Mutex.cpp	Mon Apr 17 12:55:40 2006
@@ -75,7 +75,7 @@
     errorcode = pthread_mutexattr_settype(&attr, kind);
     assert(errorcode == 0);
 
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
     // Make it a process local mutex
     errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
 #endif






More information about the llvm-commits mailing list