Skip to content

Commit

Permalink
Fixed x86_64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Oct 4, 2024
1 parent 681c6f4 commit e6f56bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrapped/wrappedlibc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2923,8 +2923,8 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, size_t length, int prot, int f
prot|=PROT_READ; // PROT_READ is implicit with PROT_WRITE on i386
if((emu || box64_is32bits) && (box64_log>=LOG_DEBUG || box64_dynarec_log>=LOG_DEBUG)) {printf_log(LOG_NONE, "mmap64(%p, 0x%lx, 0x%x, 0x%x, %d, %ld) => ", addr, length, prot, flags, fd, offset);}
int new_flags = flags;
#ifndef NOALIGN
void* old_addr = addr;
#ifndef NOALIGN
new_flags&=~MAP_32BIT; // remove MAP_32BIT
if((flags&MAP_32BIT) && !(flags&MAP_FIXED)) {
// MAP_32BIT only exist on x86_64!
Expand Down

0 comments on commit e6f56bf

Please sign in to comment.