aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-06-26 10:36:58 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-06-26 10:36:58 +0000
commitf512281d61c10cbd2dd9797457f5809648b0677b (patch)
tree9f2ca8192e28987c6f7f13b4ca42ee71fab3d92c /lib
parent65c9216a398c319d6817dbad3086346da77f3a5d (diff)
downloadexternal_llvm-f512281d61c10cbd2dd9797457f5809648b0677b.zip
external_llvm-f512281d61c10cbd2dd9797457f5809648b0677b.tar.gz
external_llvm-f512281d61c10cbd2dd9797457f5809648b0677b.tar.bz2
Make LLVM compile on DragonFly BSD (PR2499).
Patch by Hasso Tepper! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/System/Mutex.cpp2
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Mutex.cpp b/lib/System/Mutex.cpp
index 81dcd3b..f55dd3f 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);
-#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
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 2e9902d..71895f4 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -1415,7 +1415,7 @@ static void generateCompilerSpecificCode(std::ostream& Out,
<< "extern void *__builtin_alloca(unsigned int);\n"
<< "#endif\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
- << "#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)\n"
+ << "#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#elif defined(_MSC_VER)\n"
<< "#define inline _inline\n"