소스 검색

Check for MAP_32BIT presence instead of checking for Linux.

Mike Pall 12 년 전
부모
커밋
3cdeb54a24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/lj_alloc.c

+ 1 - 1
src/lj_alloc.c

@@ -177,7 +177,7 @@ static LJ_AINLINE int CALL_MUNMAP(void *ptr, size_t size)
 #if LJ_64
 /* 64 bit mode needs special support for allocating memory in the lower 2GB. */
 
-#if LJ_TARGET_LINUX
+#if defined(MAP_32BIT)
 
 /* Actually this only gives us max. 1GB in current Linux kernels. */
 static LJ_AINLINE void *CALL_MMAP(size_t size)