forked from OSchip/llvm-project
[tsan] Fix the value of PTHREAD_MUTEX_RECURSIVE for OS X and FreeBSD
The value of the constant PTHREAD_MUTEX_RECURSIVE is not "1" on FreeBSD and OS X. Differential Revision: http://reviews.llvm.org/D16075 llvm-svn: 257758
This commit is contained in:
parent
834ea6826e
commit
9f5fde7081
|
@ -121,8 +121,13 @@ extern "C" int dirfd(void *dirp);
|
|||
extern "C" int mallopt(int param, int value);
|
||||
#endif
|
||||
extern __sanitizer_FILE *stdout, *stderr;
|
||||
#if !SANITIZER_FREEBSD && !SANITIZER_MAC
|
||||
const int PTHREAD_MUTEX_RECURSIVE = 1;
|
||||
const int PTHREAD_MUTEX_RECURSIVE_NP = 1;
|
||||
#else
|
||||
const int PTHREAD_MUTEX_RECURSIVE = 2;
|
||||
const int PTHREAD_MUTEX_RECURSIVE_NP = 2;
|
||||
#endif
|
||||
const int EINVAL = 22;
|
||||
const int EBUSY = 16;
|
||||
const int EOWNERDEAD = 130;
|
||||
|
|
Loading…
Reference in New Issue