Compilation fixes for glibc-2.1.X systems. (Lionel Ulmer).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@117 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/vg_scheduler.c b/vg_scheduler.c
index 90a9d9b..68dbf19 100644
--- a/vg_scheduler.c
+++ b/vg_scheduler.c
@@ -1729,10 +1729,12 @@
/* More paranoia ... */
switch (mutex->__m_kind) {
+# ifndef GLIBC_2_1
case PTHREAD_MUTEX_TIMED_NP:
+ case PTHREAD_MUTEX_ADAPTIVE_NP:
+# endif
case PTHREAD_MUTEX_RECURSIVE_NP:
case PTHREAD_MUTEX_ERRORCHECK_NP:
- case PTHREAD_MUTEX_ADAPTIVE_NP:
if (mutex->__m_count >= 0) break;
/* else fall thru */
default:
@@ -1817,10 +1819,12 @@
/* More paranoia ... */
switch (mutex->__m_kind) {
+# ifndef GLIBC_2_1
case PTHREAD_MUTEX_TIMED_NP:
+ case PTHREAD_MUTEX_ADAPTIVE_NP:
+# endif
case PTHREAD_MUTEX_RECURSIVE_NP:
case PTHREAD_MUTEX_ERRORCHECK_NP:
- case PTHREAD_MUTEX_ADAPTIVE_NP:
if (mutex->__m_count >= 0) break;
/* else fall thru */
default:
@@ -1979,10 +1983,12 @@
/* More paranoia ... */
switch (mutex->__m_kind) {
+# ifndef GLIBC_2_1
case PTHREAD_MUTEX_TIMED_NP:
+ case PTHREAD_MUTEX_ADAPTIVE_NP:
+# endif
case PTHREAD_MUTEX_RECURSIVE_NP:
case PTHREAD_MUTEX_ERRORCHECK_NP:
- case PTHREAD_MUTEX_ADAPTIVE_NP:
if (mutex->__m_count >= 0) break;
/* else fall thru */
default: