summaryrefslogtreecommitdiff
path: root/libc/unistd/sysconf.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-01-25 21:19:46 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-01-25 21:19:46 +0000
commitcc07f2350dc260a2a4eaf4ff05f32939c55a9893 (patch)
treeb898aa05768dfd221f31c489d0d01cc2d80be868 /libc/unistd/sysconf.c
parentc4685a5c3c6cef896b3ba7ccb5b628e4489fcb34 (diff)
Clean up atexit.c; make sure sysconf and atexit agree; link in ref'd libgcc.a
objects with shared uClibc; allow disabling long long support.
Diffstat (limited to 'libc/unistd/sysconf.c')
-rw-r--r--libc/unistd/sysconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index d5c6f6b9d..032311378 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -22,6 +22,7 @@
#include <pwd.h>
#include <stddef.h>
#include <stdio.h>
+#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <sys/sysinfo.h>
@@ -658,8 +659,7 @@ long int sysconf(int name)
#endif
case _SC_ATEXIT_MAX:
- /* See stdlib/atexit.c */
- return 20;
+ return __UCLIBC_MAX_ATEXIT;
case _SC_PASS_MAX:
/* We have no limit but since the return value might be used to