mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
When MAP_ANONYMOUS is missing, fallback to MAP_ANON.
While the latter is deprecated on modern systems like glibc-based ones, FreeBSD (and probably others) still use it, so make sure it falls back if the new one is missing.
This commit is contained in:
parent
0de6877934
commit
d45c909ab3
1 changed files with 5 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue