From a973c53ea2a728460fbe6f233fd428b6db008aac Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 4 Sep 2024 11:28:11 +0200 Subject: [BOX32] This should fix NO_ALIGN box32 build --- src/wrapped/wrappedlibc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit 1.4.1