]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
merge rev 1.90.2.12:
authorJulian Seward <jseward@acm.org>
Sun, 20 Oct 2002 16:25:55 +0000 (16:25 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 20 Oct 2002 16:25:55 +0000 (16:25 +0000)
Put __pthread_getspecific_addr inside ifdefs.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1242

coregrind/arch/x86-linux/vg_libpthread.c
coregrind/vg_libpthread.c

index 363e6ffd2cfabf1594cdd1ce0cd2d0f6bb3fc2a0..42e289f3635f0c61325c9b8c178015baf23ccffd 100644 (file)
@@ -1419,6 +1419,7 @@ void * __pthread_getspecific(pthread_key_t key)
 }
 
 
+#ifdef GLIBC_2_3
 static
 void ** __pthread_getspecific_addr(pthread_key_t key)
 {
@@ -1431,7 +1432,7 @@ void ** __pthread_getspecific_addr(pthread_key_t key)
    specifics_ptr = get_or_allocate_specifics_ptr(pthread_self());
    return &(specifics_ptr[key]);
 }
-
+#endif
 
 /* ---------------------------------------------------
    ONCEry
index 363e6ffd2cfabf1594cdd1ce0cd2d0f6bb3fc2a0..42e289f3635f0c61325c9b8c178015baf23ccffd 100644 (file)
@@ -1419,6 +1419,7 @@ void * __pthread_getspecific(pthread_key_t key)
 }
 
 
+#ifdef GLIBC_2_3
 static
 void ** __pthread_getspecific_addr(pthread_key_t key)
 {
@@ -1431,7 +1432,7 @@ void ** __pthread_getspecific_addr(pthread_key_t key)
    specifics_ptr = get_or_allocate_specifics_ptr(pthread_self());
    return &(specifics_ptr[key]);
 }
-
+#endif
 
 /* ---------------------------------------------------
    ONCEry