parent
264c908e3a
commit
e3955a05e4
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue