diff options
| author | Mike Pall <mike> | 2013-10-10 14:34:04 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2013-10-10 14:34:04 +0200 |
| commit | 3cdeb54a24047d1402a0c2d795888c0791f9157d (patch) | |
| tree | 0f390c7031a8c81a44e0c5f05e4a09bbdc2d0e84 /src | |
| parent | 474bb21af18505c0bdb47a383188d10ea0157fa5 (diff) | |
| download | luajit-3cdeb54a24047d1402a0c2d795888c0791f9157d.tar.gz luajit-3cdeb54a24047d1402a0c2d795888c0791f9157d.tar.bz2 luajit-3cdeb54a24047d1402a0c2d795888c0791f9157d.zip | |
Check for MAP_32BIT presence instead of checking for Linux.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 177 | #if LJ_64 | 177 | #if LJ_64 |
| 178 | /* 64 bit mode needs special support for allocating memory in the lower 2GB. */ | 178 | /* 64 bit mode needs special support for allocating memory in the lower 2GB. */ |
| 179 | 179 | ||
| 180 | #if LJ_TARGET_LINUX | 180 | #if defined(MAP_32BIT) |
| 181 | 181 | ||
| 182 | /* Actually this only gives us max. 1GB in current Linux kernels. */ | 182 | /* Actually this only gives us max. 1GB in current Linux kernels. */ |
| 183 | static LJ_AINLINE void *CALL_MMAP(size_t size) | 183 | static LJ_AINLINE void *CALL_MMAP(size_t size) |
