Skip to content
Snippets Groups Projects
Commit 181fe4ad authored by Reid Spencer's avatar Reid Spencer
Browse files

For PR808:

NetBSD also doesn't have pthread_mutexattr_setpshared

llvm-svn: 33406
parent 78adb9d1
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ Mutex::Mutex( bool recursive) ...@@ -76,7 +76,7 @@ Mutex::Mutex( bool recursive)
errorcode = pthread_mutexattr_settype(&attr, kind); errorcode = pthread_mutexattr_settype(&attr, kind);
assert(errorcode == 0); assert(errorcode == 0);
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
// 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment