about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-23 08:24:25 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-23 08:24:25 +0100
commitce4590f5ba8c3a30e61c1d2be786258b6ad5da6c (patch)
tree6df302e72343bbca6daa98a0524e127e866e23d3 /src
parentcd3f5ca97db2a0a9103be83bcadba3e09b24e80e (diff)
downloadbox64-ce4590f5ba8c3a30e61c1d2be786258b6ad5da6c.tar.gz
box64-ce4590f5ba8c3a30e61c1d2be786258b6ad5da6c.zip
Fix build for older system (for #2190)
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c6
-rw-r--r--src/wrapped/wrappedlibc.c6
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)
 {