MAP_SYSTEM

This commit is contained in:
lizzie 2025-12-01 18:54:57 +00:00
parent c7298af7dd
commit cc5d85b28a
1 changed files with 8 additions and 1 deletions

View File

@ -45,8 +45,15 @@
# define MAP_ANONYMOUS MAP_ANON
#endif
// PlayStation 4
// Flag needs to be undef-ed on non PS4 since it has different semantics
// on some platforms.
#ifndef MAP_SYSTEM
# define MAP_SYSTEM 0
# ifdef __OPENORBIS__
# define MAP_SYSTEM 0x2000
# else
# undef MAP_SYSTEM
# define MAP_SYSTEM 0
# endif
#endif
#endif // ^^^ POSIX ^^^