Check for MAP_32BIT presence instead of checking for Linux.

This commit is contained in:
Mike Pall 2013-10-10 14:34:04 +02:00
parent 474bb21af1
commit 3cdeb54a24

View File

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