diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -4534,9 +4534,9 @@ } #define INIT___PTHREAD_MUTEX_LOCK \ - COMMON_INTERCEPT_FUNCTION(__pthread_mutex_lock) + COMMON_INTERCEPT_FUNCTION_GLIBC_VER_MIN(__pthread_mutex_lock, "GLIBC_2.2.5") #define INIT___PTHREAD_MUTEX_UNLOCK \ - COMMON_INTERCEPT_FUNCTION(__pthread_mutex_unlock) + COMMON_INTERCEPT_FUNCTION_GLIBC_VER_MIN(__pthread_mutex_unlock, "GLIBC_2.2.5") #else #define INIT___PTHREAD_MUTEX_LOCK #define INIT___PTHREAD_MUTEX_UNLOCK