summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/shm.c
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2009-06-29 18:55:12 +0300
committerTanu Kaskinen <tanuk@iki.fi>2009-06-29 18:55:12 +0300
commitc266595058416b4b776890dadf3ad827787f4e7e (patch)
treebfedd08b4579c33b62d42da88498b6c26088b88e /src/pulsecore/shm.c
parent0bc538b08ca5c4efea86700cb6c4685da3f34345 (diff)
parent1ca76031092ab07682843fd70607696f6af7216f (diff)
Merge branch 'master' into dbus-work
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>