diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-12-20 18:21:07 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-12-20 18:21:07 +0100 |
| commit | f073da1d275cde328986fe3ae7a4832dc7cedade (patch) | |
| tree | 59114d9e39d348d205028217183d43984b584ae0 /src | |
| parent | dad0d648a18a6a459c638c81dc47b78df91cf1ce (diff) | |
| download | box64-f073da1d275cde328986fe3ae7a4832dc7cedade.tar.gz box64-f073da1d275cde328986fe3ae7a4832dc7cedade.zip | |
This should fix x86_64 build
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 235dd92b..1dcf17d6 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1748,10 +1748,6 @@ EXPORT FILE* my_fopen64(x64emu_t* emu, const char* path, const char* mode) lseek(tmp, 0, SEEK_SET); return fdopen(tmp, mode); } - #endif - if(isProcSelf(path, "exe")) { - return fopen64(emu->context->fullpath, mode); - } if(box64_wine && (!strcmp(path, "/sys/devices/system/cpu/present") || !strcmp(path, "/sys/devices/system/cpu/online")) && (getNCpu()>=64)) { // special case for cpu present (to limit to 64 cores) int tmp = shm_open(TMP_CPUPRESENT, O_RDWR | O_CREAT, S_IRWXU); @@ -1761,6 +1757,10 @@ EXPORT FILE* my_fopen64(x64emu_t* emu, const char* path, const char* mode) lseek(tmp, 0, SEEK_SET); return fdopen(tmp, mode); } + #endif + if(isProcSelf(path, "exe")) { + return fopen64(emu->context->fullpath, mode); + } return fopen64(path, mode); } EXPORT FILE* my_fopen(x64emu_t* emu, const char* path, const char* mode) __attribute__((alias("my_fopen64"))); |