mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 12:35:48 +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>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__linux__) && !defined(MAP_FIXED_NOREPLACE)
|
||||||
|
// Compatibility with old libc.
|
||||||
|
#define MAP_FIXED_NOREPLACE 0x100000
|
||||||
|
#endif
|
||||||
|
|
||||||
LOG_CHANNEL(MemMap);
|
LOG_CHANNEL(MemMap);
|
||||||
|
|
||||||
namespace MemMap {
|
namespace MemMap {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user