We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6c3e4 commit bdd28a2Copy full SHA for bdd28a2
compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_mutex.cpp
@@ -4,7 +4,12 @@
4
5
#include <pthread.h>
6
7
-#ifdef USE_GLIBC
+#if !defined(__GLIBC_PREREQ)
8
+#define __GLIBC_PREREQ(a, b) 0
9
+#endif
10
+
11
+#if defined(USE_GLIBC) && !__GLIBC_PREREQ(2, 34)
12
+// They were removed from GLIBC 2.34
13
extern "C" int __pthread_mutex_lock(pthread_mutex_t *__mutex);
14
extern "C" int __pthread_mutex_unlock(pthread_mutex_t *__mutex);
15
#define LOCK __pthread_mutex_lock
0 commit comments