From 181fe4ad09469024f9862fc04188264488d040dc Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 20 Jan 2007 20:44:38 +0000 Subject: [PATCH] For PR808: NetBSD also doesn't have pthread_mutexattr_setpshared llvm-svn: 33406 --- llvm/lib/System/Mutex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/System/Mutex.cpp b/llvm/lib/System/Mutex.cpp index 5dc8d134e02f..a0fd417dbdc6 100644 --- a/llvm/lib/System/Mutex.cpp +++ b/llvm/lib/System/Mutex.cpp @@ -76,7 +76,7 @@ Mutex::Mutex( bool recursive) errorcode = pthread_mutexattr_settype(&attr, kind); assert(errorcode == 0); -#if !defined(__FreeBSD__) && !defined(__OpenBSD__) +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) // Make it a process local mutex errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE); #endif -- GitLab