diff options
| author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-26 10:36:58 +0000 |
|---|---|---|
| committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-26 10:36:58 +0000 |
| commit | f61fd542372a77a3e7b50196dd77d6559f00c9ad (patch) | |
| tree | e1bf340b5e4ecb7376769463a0ad0b6ae49c621e /llvm/lib/System | |
| parent | b032fedf7d1f266ba3df5e5296cf51a4fb0843c1 (diff) | |
| download | bcm5719-llvm-f61fd542372a77a3e7b50196dd77d6559f00c9ad.tar.gz bcm5719-llvm-f61fd542372a77a3e7b50196dd77d6559f00c9ad.zip | |
Make LLVM compile on DragonFly BSD (PR2499).
Patch by Hasso Tepper!
llvm-svn: 52781
Diffstat (limited to 'llvm/lib/System')
| -rw-r--r-- | llvm/lib/System/Mutex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Mutex.cpp b/llvm/lib/System/Mutex.cpp index 81dcd3b418b..f55dd3fe26f 100644 --- a/llvm/lib/System/Mutex.cpp +++ b/llvm/lib/System/Mutex.cpp @@ -75,7 +75,7 @@ Mutex::Mutex( bool recursive) errorcode = pthread_mutexattr_settype(&attr, kind); assert(errorcode == 0); -#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) // Make it a process local mutex errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE); #endif |

