]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use definition of enum __libc_tsd_key_t from glibc 2.2.4 rather than
authorJulian Seward <jseward@acm.org>
Thu, 5 Sep 2002 19:47:46 +0000 (19:47 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 5 Sep 2002 19:47:46 +0000 (19:47 +0000)
2.2.2.  This gets rid of the following message:

valgrind's libpthread.so: libc_internal_tsd_get: dubious key 2

MERGE TO ERASER

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

vg_libpthread.c

index 0ed6ee3cf643e40b6760f68cc5eb4423cf53eff4..1d1ab05adcdff196197e47b5350847d413b74c39 100644 (file)
@@ -1388,13 +1388,14 @@ struct __res_state* __res_state ( void )
 /* Relies on assumption that initial private data is NULL.  This
    should be fixed somehow. */
 
-/* The allowable keys (indices) (all 2 of them). 
+/* The allowable keys (indices) (all 3 of them). 
    From sysdeps/pthread/bits/libc-tsd.h
 */
-#define N_LIBC_TSD_EXTRA_KEYS 1
+#define N_LIBC_TSD_EXTRA_KEYS 0
 
 enum __libc_tsd_key_t { _LIBC_TSD_KEY_MALLOC = 0,
                         _LIBC_TSD_KEY_DL_ERROR,
+                        _LIBC_TSD_KEY_RPC_VARS,
                         _LIBC_TSD_KEY_N };
 
 /* Auto-initialising subsystem.  libc_specifics_inited is set