[sanitizer] Don't test __pthread_mutex_lock with GLIBC 2.34

This commit is contained in:
Vitaly Buka 2021-11-12 23:38:59 -08:00
parent 82bc6a094e
commit e60b3fcefa
1 changed files with 6 additions and 1 deletions

View File

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