MAP_ANON is the same as MAP_ANONYMOUS, no need to have the former

* mem.c: Do not allocate string for MAP_ANON if it is the same as
MAP_ANONYMOUS.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2012-03-17 01:29:40 +01:00
parent 3e3490acf7
commit 2897fb3437

2
mem.c
View File

@ -150,7 +150,7 @@ static const struct xlat mmap_flags[] = {
{ MAP_LOCKED, "MAP_LOCKED" },
#endif
/* FreeBSD ones */
#ifdef MAP_ANON
#if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
{ MAP_ANON, "MAP_ANON" },
#endif
#ifdef MAP_HASSEMAPHORE