summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/specific.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads/specific.c')
-rw-r--r--libpthread/linuxthreads/specific.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/specific.c b/libpthread/linuxthreads/specific.c
index cf54f7fa1..120bb13df 100644
--- a/libpthread/linuxthreads/specific.c
+++ b/libpthread/linuxthreads/specific.c
@@ -27,6 +27,9 @@
static struct pthread_key_struct pthread_keys[PTHREAD_KEYS_MAX] =
{ { 0, NULL } };
+/* Put the maximum number of keys in a variable to make gdb happy. */
+const int __linuxthreads_pthread_keys_max = PTHREAD_KEYS_MAX;
+
/* Mutex to protect access to pthread_keys */
static pthread_mutex_t pthread_keys_mutex = PTHREAD_MUTEX_INITIALIZER;