diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-04-17 17:55:41 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-04-17 17:55:41 +0000 |
commit | 3c280bf4d1bca59f75cb21d6a3b88d6d567c7f3c (patch) | |
tree | 9d122c136fe2f69ef48cdb54ebf14d2d39ded5b5 /lib/System/Mutex.cpp | |
parent | bdd558cd94a816df83526ab5e5d309f3fc0e210a (diff) |
Add checks for __OpenBSD__.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Mutex.cpp')
-rw-r--r-- | lib/System/Mutex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Mutex.cpp b/lib/System/Mutex.cpp index 33dff05331..abcf77e675 100644 --- a/lib/System/Mutex.cpp +++ b/lib/System/Mutex.cpp @@ -75,7 +75,7 @@ Mutex::Mutex( bool recursive) 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 |