diff options
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/memtrap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/memtrap.c b/src/pulsecore/memtrap.c index 601fef44..e06f60ca 100644 --- a/src/pulsecore/memtrap.c +++ b/src/pulsecore/memtrap.c @@ -26,6 +26,11 @@ #include <signal.h> #include <sys/mman.h> +/* 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 <pulsecore/core-util.h> |