Also alias MAP_ANONYMOUS to MAP_ANON in shm.c, for FreeBSD.
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Wed, 24 Jun 2009 20:08:41 +0000 (22:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 29 Jun 2009 15:41:06 +0000 (17:41 +0200)
src/pulsecore/shm.c

index fab2b3b..6e42842 100644 (file)
 #include <sys/mman.h>
 #endif
 
+/* This is deprecated on glibc but is still used by FreeBSD */
+#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
+# define MAP_ANONYMOUS MAP_ANON
+#endif
+
 #include <pulse/xmalloc.h>
 #include <pulse/gccmacro.h>