OSDN Git Service

Doh!!! I am an idiot. I had broken malloc by disabling getpagesize(), and I
authorEric Andersen <andersen@codepoet.org>
Thu, 16 Nov 2000 23:13:57 +0000 (23:13 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 16 Nov 2000 23:13:57 +0000 (23:13 -0000)
didn't even do it for a good reason.  Fixed, so malloc should work again...
 -Erik

libc/unistd/sysconf.c

index 96aa301..c195a2d 100644 (file)
@@ -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: