summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/shm.c
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-06-24 22:08:41 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-29 17:41:06 +0200
commitde40e41446c1317104869d0b0cccb2068da3639b (patch)
tree47c4becc9ce4c776d3654b71f0de1879d3717816 /src/pulsecore/shm.c
parent2f7bce9375f089d8a7668e1a66e64be0d9892345 (diff)
Also alias MAP_ANONYMOUS to MAP_ANON in shm.c, for FreeBSD.
Diffstat (limited to 'src/pulsecore/shm.c')
-rw-r--r--src/pulsecore/shm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c
index fab2b3b6..6e428426 100644
--- a/src/pulsecore/shm.c
+++ b/src/pulsecore/shm.c
@@ -39,6 +39,11 @@
#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>