瀏覽代碼

_SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZE
instead, but we are not such a system and should not propagate such things.

Eric Andersen 21 年之前
父節點
當前提交
a4b98042e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libc/stdlib/malloc-standard/malloc.h

+ 1 - 1
libc/stdlib/malloc-standard/malloc.h

@@ -136,7 +136,7 @@ extern pthread_mutex_t __malloc_lock;
 */
 #ifndef malloc_getpagesize
 #  include <unistd.h>
-#  define malloc_getpagesize sysconf(_SC_PAGE_SIZE)
+#  define malloc_getpagesize sysconf(_SC_PAGESIZE)
 #else /* just guess */
 #  define malloc_getpagesize (4096)
 #endif