about summary refs log tree commit diff
path: root/nptl/tst-key1.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-key1.c')
-rw-r--r--nptl/tst-key1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/tst-key1.c b/nptl/tst-key1.c
index b40fffc33b..af5cb7e5cc 100644
--- a/nptl/tst-key1.c
+++ b/nptl/tst-key1.c
@@ -28,7 +28,11 @@ do_test (void)
 {
   int max;
 #ifdef PTHREAD_KEYS_MAX
+#ifdef PTHREAD_SIGNAL_SAFE_KEYS_MAX
+  max = PTHREAD_KEYS_MAX - PTHREAD_SIGNAL_SAFE_KEYS_MAX;
+#else
   max = PTHREAD_KEYS_MAX;
+#endif
 #else
   max = _POSIX_THREAD_KEYS_MAX;
 #endif