From d958487e8a24b5596c19eef9bdb263aaebca92da Mon Sep 17 00:00:00 2001 From: "Charles A. Roelli" Date: Fri, 28 Sep 2018 16:31:55 -0400 Subject: [PATCH] * src/pdumper.c (MAP_ANONYMOUS): Fix build on older than macOS 10.11 --- src/pdumper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pdumper.c b/src/pdumper.c index 400177223a4..8b06f05f487 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -4101,6 +4101,12 @@ dump_anonymous_allocate_w32 (void *base, #endif } +/* Old versions of macOS only define MAP_ANON, not MAP_ANONYMOUS. + FIXME: This probably belongs elsewhere (gnulib/autoconf?) */ +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + static void * dump_anonymous_allocate_posix (void *base, size_t size, -- 2.39.2