Memmap: Compatibility with old libc without MAP_FIXED_NOREPLACE
This commit is contained in:
parent
219e890da5
commit
f978ab674d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue