about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-04 11:28:11 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-04 11:28:11 +0200
commita973c53ea2a728460fbe6f233fd428b6db008aac (patch)
treeca66b53d9b61f1da297a4d7392eacb11049605c4 /src
parentee7b10f064326a657c13821d5f07cca41a45d4ae (diff)
downloadbox64-a973c53ea2a728460fbe6f233fd428b6db008aac.tar.gz
box64-a973c53ea2a728460fbe6f233fd428b6db008aac.zip
[BOX32] This should fix NO_ALIGN box32 build
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedlibc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 51160827..d862a2c0 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -2830,7 +2830,7 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, unsigned long length, int prot
     }
     #endif
     void* ret = internal_mmap(addr, length, prot, new_flags, fd, offset);
-    #if !defined(NOALIGN) || defined(BOX32)
+    #if !defined(NOALIGN)
     if((ret!=MAP_FAILED) && (flags&MAP_32BIT) &&
       (((uintptr_t)ret>0xffffffffLL) || ((box64_wine) && ((uintptr_t)ret&0xffff) && (ret!=addr)))) {
         int olderr = errno;