mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 19:45:33 +00:00
Memmap: Compatibility with old libc without MAP_FIXED_NOREPLACE
This commit is contained in:
parent
7ad48c9309
commit
972a0693b2
@ -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…
x
Reference in New Issue
Block a user