1
0
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:
Misha Brukman 2003-07-28 19:26:19 +00:00
parent 45b1af0386
commit c77e286633

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