From 3cdeb54a24047d1402a0c2d795888c0791f9157d Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 10 Oct 2013 14:34:04 +0200 Subject: [PATCH] Check for MAP_32BIT presence instead of checking for Linux. --- src/lj_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_alloc.c b/src/lj_alloc.c index 42eb2e43..b381bba1 100644 --- a/src/lj_alloc.c +++ b/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)