Memmap: Compatibility with old libc without MAP_FIXED_NOREPLACE

This commit is contained in:
Stenzek 2024-10-14 22:47:51 +10:00
parent 219e890da5
commit f978ab674d
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@
#include <unistd.h>
#endif
#if defined(__linux__) && !defined(MAP_FIXED_NOREPLACE)
// Compatibility with old libc.
#define MAP_FIXED_NOREPLACE 0x100000
#endif
LOG_CHANNEL(MemMap);
namespace MemMap {