diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-12-23 08:24:25 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-12-23 08:24:25 +0100 |
| commit | ce4590f5ba8c3a30e61c1d2be786258b6ad5da6c (patch) | |
| tree | 6df302e72343bbca6daa98a0524e127e866e23d3 /src | |
| parent | cd3f5ca97db2a0a9103be83bcadba3e09b24e80e (diff) | |
| download | box64-ce4590f5ba8c3a30e61c1d2be786258b6ad5da6c.tar.gz box64-ce4590f5ba8c3a30e61c1d2be786258b6ad5da6c.zip | |
Fix build for older system (for #2190)
Diffstat (limited to 'src')
| -rw-r--r-- | src/custommem.c | 6 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/custommem.c b/src/custommem.c index 51ac28cb..d9804f34 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -2187,6 +2187,12 @@ int internal_munmap(void* addr, unsigned long length) return ret; } +#ifndef MAP_FIXED_NOREPLACE +#define MAP_FIXED_NOREPLACE 0x200000 +#endif +#ifndef MAP_32BIT +#define MAP_32BIT 0x40 +#endif EXPORT void* box_mmap(void *addr, size_t length, int prot, int flags, int fd, ssize_t offset) { if(prot&PROT_WRITE) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index c8d14760..3db583cf 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2963,12 +2963,6 @@ EXPORT int my_readlinkat(x64emu_t* emu, int fd, void* path, void* buf, size_t bu } return readlinkat(fd, path, buf, bufsize); } -#ifndef MAP_FIXED_NOREPLACE -#define MAP_FIXED_NOREPLACE 0x200000 -#endif -#ifndef MAP_32BIT -#define MAP_32BIT 0x40 -#endif extern int have48bits; EXPORT void* my_mmap64(x64emu_t* emu, void *addr, size_t length, int prot, int flags, int fd, ssize_t offset) { |