mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Add rationale for the MAP_ANONYMOUS vs. MAP_ANON flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79223edea6
commit
fd31a78124
@ -73,6 +73,7 @@ static void *getMemory(unsigned NumPages) {
|
||||
static const long pageSize = sysconf(_SC_PAGESIZE);
|
||||
|
||||
#if defined(i386) || defined(__i386__) || defined(__x86__)
|
||||
/* Linux and *BSD tend to have these flags named differently. */
|
||||
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
|
||||
# define MAP_ANONYMOUS MAP_ANON
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user