mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
Define Linux-specific O_PATH and MAP_LOCKED flags to 0 on FreeBSD
This commit is contained in:
parent
3faf388821
commit
c5e42aa9db
2 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,9 @@
|
||||||
#if HAVE_PWD_H
|
#if HAVE_PWD_H
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#define O_PATH 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <spa/utils/result.h>
|
#include <spa/utils/result.h>
|
||||||
#include <spa/utils/json.h>
|
#include <spa/utils/json.h>
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,10 @@ static inline int memfd_create(const char *name, unsigned int flags)
|
||||||
#define HAVE_MEMFD_CREATE 1
|
#define HAVE_MEMFD_CREATE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#define MAP_LOCKED 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* memfd_create(2) flags */
|
/* memfd_create(2) flags */
|
||||||
|
|
||||||
#ifndef MFD_CLOEXEC
|
#ifndef MFD_CLOEXEC
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue