소스 검색

_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