From: Diego Elio 'Flameeyes' Pettenò Date: Wed, 24 Jun 2009 20:08:41 +0000 (+0200) Subject: Also alias MAP_ANONYMOUS to MAP_ANON in shm.c, for FreeBSD. X-Git-Tag: submit/2.0-panda/20130828.192557~1645 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de40e41446c1317104869d0b0cccb2068da3639b;p=profile%2Fivi%2Fpulseaudio-panda.git Also alias MAP_ANONYMOUS to MAP_ANON in shm.c, for FreeBSD. --- diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c index fab2b3b..6e42842 100644 --- a/src/pulsecore/shm.c +++ b/src/pulsecore/shm.c @@ -39,6 +39,11 @@ #include #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 #include