Add rationale for the MAP_ANONYMOUS vs. MAP_ANON flags.

llvm-svn: 7368
This commit is contained in:
Misha Brukman 2003-07-28 19:26:19 +00:00
parent b7ea12c550
commit c0ae1cd93e
1 changed files with 1 additions and 0 deletions

View File

@ -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