mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 20:12:56 +02:00
Add rationale for the MAP_ANONYMOUS vs. MAP_ANON flags.
llvm-svn: 7368
This commit is contained in:
parent
45b1af0386
commit
c77e286633
@ -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