summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-11-16 23:13:57 +0000
committerEric Andersen <andersen@codepoet.org>2000-11-16 23:13:57 +0000
commit745e625d258c8e0525c32814243ab3fb538bae13 (patch)
tree13634fa22923faaa6e14ae93df78a621fd406b71
parent350c0215ef0e7cd915c2a2931b548e75d540a686 (diff)
Doh!!! I am an idiot. I had broken malloc by disabling getpagesize(), and I
didn't even do it for a good reason. Fixed, so malloc should work again... -Erik
-rw-r--r--libc/unistd/sysconf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index 96aa30122..c195a2dc3 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -203,10 +203,7 @@ long int sysconf(int name)
return _POSIX_VERSION;
case _SC_PAGESIZE:
-#if 0
- return __getpagesize ();
-#else
- return -1;
+ return getpagesize();
#endif
case _SC_AIO_LISTIO_MAX: