mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +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:
@ -75,7 +75,7 @@ Mutex::Mutex( bool recursive)
|
|||||||
errorcode = pthread_mutexattr_settype(&attr, kind);
|
errorcode = pthread_mutexattr_settype(&attr, kind);
|
||||||
assert(errorcode == 0);
|
assert(errorcode == 0);
|
||||||
|
|
||||||
#ifndef __FreeBSD__
|
#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||||
// Make it a process local mutex
|
// Make it a process local mutex
|
||||||
errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
|
errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
|
||||||
#endif
|
#endif
|
||||||
|
@ -813,7 +813,7 @@ static void generateCompilerSpecificCode(std::ostream& Out) {
|
|||||||
<< "extern void *__builtin_alloca(unsigned int);\n"
|
<< "extern void *__builtin_alloca(unsigned int);\n"
|
||||||
<< "#endif\n"
|
<< "#endif\n"
|
||||||
<< "#define alloca(x) __builtin_alloca(x)\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"
|
<< "#define alloca(x) __builtin_alloca(x)\n"
|
||||||
<< "#elif !defined(_MSC_VER)\n"
|
<< "#elif !defined(_MSC_VER)\n"
|
||||||
<< "#include <alloca.h>\n"
|
<< "#include <alloca.h>\n"
|
||||||
|
@ -813,7 +813,7 @@ static void generateCompilerSpecificCode(std::ostream& Out) {
|
|||||||
<< "extern void *__builtin_alloca(unsigned int);\n"
|
<< "extern void *__builtin_alloca(unsigned int);\n"
|
||||||
<< "#endif\n"
|
<< "#endif\n"
|
||||||
<< "#define alloca(x) __builtin_alloca(x)\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"
|
<< "#define alloca(x) __builtin_alloca(x)\n"
|
||||||
<< "#elif !defined(_MSC_VER)\n"
|
<< "#elif !defined(_MSC_VER)\n"
|
||||||
<< "#include <alloca.h>\n"
|
<< "#include <alloca.h>\n"
|
||||||
|
Reference in New Issue
Block a user