[llvm-commits] CVS: llvm/lib/System/Mutex.cpp

Chris Lattner clattner at apple.com
Sat Jan 20 14:13:35 PST 2007


> For PR808: http://llvm.org/PR808 :
> NetBSD also doesn't have pthread_mutexattr_setpshared

>
> -#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

Can't we just change this to:

#ifdef PTHREAD_PROCESS_PRIVATE

?

-Chris



More information about the llvm-commits mailing list