about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
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)
 {