]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Put __pthread_getspecific_addr inside ifdefs.
authorJulian Seward <jseward@acm.org>
Sun, 13 Oct 2002 17:07:25 +0000 (17:07 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 13 Oct 2002 17:07:25 +0000 (17:07 +0000)
MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1226

vg_libpthread.c

index f16eacac476ba2da07f30c1a0fd2bd9c8f1c5b20..e2f6f36cb5c7f5b340587a5eddd9861decbe2db2 100644 (file)
@@ -1422,6 +1422,7 @@ void * __pthread_getspecific(pthread_key_t key)
 }
 
 
+#ifdef GLIBC_2_3
 static
 void ** __pthread_getspecific_addr(pthread_key_t key)
 {
@@ -1434,7 +1435,7 @@ void ** __pthread_getspecific_addr(pthread_key_t key)
    specifics_ptr = get_or_allocate_specifics_ptr(pthread_self());
    return &(specifics_ptr[key]);
 }
-
+#endif
 
 /* ---------------------------------------------------
    ONCEry