From: Denys Vlasenko Date: Sat, 17 Mar 2012 00:29:40 +0000 (+0100) Subject: MAP_ANON is the same as MAP_ANONYMOUS, no need to have the former X-Git-Tag: v4.7~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2897fb3437eb27897b23a2e894a214e6d7c3b362;p=strace 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 --- diff --git a/mem.c b/mem.c index 320535e7..72b30dec 100644 --- a/mem.c +++ b/mem.c @@ -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