diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-07-31 11:58:03 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-07-31 11:58:03 +0200 |
| commit | 16011f4b3418314313d32bc6bec4cef188169ca7 (patch) | |
| tree | 2abf812e5cccb7b3bf517377bbd0a7e293248c3f /src | |
| parent | 5a3316b8729352072ccc27b076b97d29d1974b1f (diff) | |
| download | box64-16011f4b3418314313d32bc6bec4cef188169ca7.tar.gz box64-16011f4b3418314313d32bc6bec4cef188169ca7.zip | |
Fix NOALIGN build
Diffstat (limited to 'src')
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 3796bfb9..98da2cda 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2026,6 +2026,7 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, unsigned long length, int prot } #endif void* ret = mmap64(addr, length, prot, flags, fd, offset); + #ifndef NOALIGN if((ret!=(void*)-1) && (flags&0x40) && ((uintptr_t)ret>0xffffffff)) { printf_log(LOG_INFO, "Warning, mmap on 32bits didn't worked, ask %p, got %p ", addr, ret); munmap(ret, length); @@ -2041,6 +2042,7 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, unsigned long length, int prot ret = mmap64(addr, length, prot, flags, fd, offset); printf_log(LOG_INFO, " tried again with %p, got %p\n", addr, ret); } + #endif if(box64_log<LOG_DEBUG) {dynarec_log(LOG_DEBUG, "%p\n", ret);} #ifdef DYNAREC if(box64_dynarec && ret!=(void*)-1) { |