forked from OSchip/llvm-project
[sanitizer] Don't test __pthread_mutex_lock with GLIBC 2.34
This commit is contained in:
parent
82bc6a094e
commit
e60b3fcefa
|
@ -4,7 +4,12 @@
|
|||
|
||||
#include <pthread.h>
|
||||
|
||||
#ifdef USE_GLIBC
|
||||
#if !defined(__GLIBC_PREREQ)
|
||||
#define __GLIBC_PREREQ(a, b) 0
|
||||
#endif
|
||||
|
||||
#if defined(USE_GLIBC) && !__GLIBC_PREREQ(2, 34)
|
||||
// They were removed from GLIBC 2.34
|
||||
extern "C" int __pthread_mutex_lock(pthread_mutex_t *__mutex);
|
||||
extern "C" int __pthread_mutex_unlock(pthread_mutex_t *__mutex);
|
||||
#define LOCK __pthread_mutex_lock
|
||||
|
|
Loading…
Reference in New Issue