]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/pdumper.c (MAP_ANONYMOUS): Fix build on older than macOS 10.11
authorCharles A. Roelli <charles@aurox.ch>
Fri, 28 Sep 2018 20:31:55 +0000 (16:31 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 28 Sep 2018 20:31:55 +0000 (16:31 -0400)
src/pdumper.c

index 400177223a4b905d7d2c4c944194256378265cd3..8b06f05f4877700d457ba24190b76e5354d5b49f 100644 (file)
@@ -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,