diff --git a/src/common/memmap.cpp b/src/common/memmap.cpp index 3cea00b13..da6af3e0a 100644 --- a/src/common/memmap.cpp +++ b/src/common/memmap.cpp @@ -36,6 +36,11 @@ #include #endif +#if defined(__linux__) && !defined(MAP_FIXED_NOREPLACE) +// Compatibility with old libc. +#define MAP_FIXED_NOREPLACE 0x100000 +#endif + LOG_CHANNEL(MemMap); namespace MemMap {