about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c
index b039c291..6e83a6b6 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -1577,7 +1577,7 @@ extern int running32bits;
 EXPORT void* mmap64(void *addr, unsigned long length, int prot, int flags, int fd, ssize_t offset)
 {
     void* ret;
-    if(running32bits && box64_mmap32 && !addr)
+    if(!addr && ((running32bits && box64_mmap32) || (flags&0x40)))
         ret = my_mmap64(NULL, addr, length, prot, flags | 0x40, fd, offset);
     else
         ret = internal_mmap(addr, length, prot, flags, fd, offset);