Put __pthread_getspecific_addr inside ifdefs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1242
}
+#ifdef GLIBC_2_3
static
void ** __pthread_getspecific_addr(pthread_key_t key)
{
specifics_ptr = get_or_allocate_specifics_ptr(pthread_self());
return &(specifics_ptr[key]);
}
-
+#endif
/* ---------------------------------------------------
ONCEry
}
+#ifdef GLIBC_2_3
static
void ** __pthread_getspecific_addr(pthread_key_t key)
{
specifics_ptr = get_or_allocate_specifics_ptr(pthread_self());
return &(specifics_ptr[key]);
}
-
+#endif
/* ---------------------------------------------------
ONCEry