about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-10-03 00:03:19 -0400
committerRich Felker <dalias@aerifal.cx>2011-10-03 00:03:19 -0400
commitb3b00d11e87926b553429d341b020a8a070e4ea1 (patch)
tree33f9382e9e0b817cc6b40b7e75e27d182296bb53 /src
parent5a2e18093725c3965486641f0ad0b61a44f7ed68 (diff)
downloadmusl-b3b00d11e87926b553429d341b020a8a070e4ea1.tar.gz
musl-b3b00d11e87926b553429d341b020a8a070e4ea1.tar.xz
musl-b3b00d11e87926b553429d341b020a8a070e4ea1.zip
sysconf for PTHREAD_KEYS_MAX
Diffstat (limited to 'src')
-rw-r--r--src/conf/sysconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf/sysconf.c b/src/conf/sysconf.c
index 1557aa54..28232a77 100644
--- a/src/conf/sysconf.c
+++ b/src/conf/sysconf.c
@@ -82,7 +82,7 @@ long sysconf(int name)
 		[_SC_LOGIN_NAME_MAX] = 256,
 		[_SC_TTY_NAME_MAX] = TTY_NAME_MAX,
 		[_SC_THREAD_DESTRUCTOR_ITERATIONS] = _POSIX_THREAD_DESTRUCTOR_ITERATIONS,
-		[_SC_THREAD_KEYS_MAX] = -1,
+		[_SC_THREAD_KEYS_MAX] = PTHREAD_KEYS_MAX,
 		[_SC_THREAD_STACK_MIN] = PTHREAD_STACK_MIN,
 		[_SC_THREAD_THREADS_MAX] = -1,
 		[_SC_THREAD_ATTR_STACKADDR] = -1,