Also alias MAP_ANONYMOUS to MAP_ANON in shm.c, for FreeBSD.

This commit is contained in:
Diego Elio 'Flameeyes' Pettenò 2009-06-24 22:08:41 +02:00 committed by Lennart Poettering
parent 2f7bce9375
commit de40e41446

View file

@ -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>