mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add checks for __OpenBSD__.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdd558cd94
commit
3c280bf4d1
@ -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
|
||||
|
@ -813,7 +813,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__)\n"
|
||||
<< "#elif defined(__FreeBSD__) || defined(__OpenBSD__)\n"
|
||||
<< "#define alloca(x) __builtin_alloca(x)\n"
|
||||
<< "#elif !defined(_MSC_VER)\n"
|
||||
<< "#include <alloca.h>\n"
|
||||
|
@ -813,7 +813,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__)\n"
|
||||
<< "#elif defined(__FreeBSD__) || defined(__OpenBSD__)\n"
|
||||
<< "#define alloca(x) __builtin_alloca(x)\n"
|
||||
<< "#elif !defined(_MSC_VER)\n"
|
||||
<< "#include <alloca.h>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user