mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
#define O_PATH 0
|
||||
#endif
|
||||
|
||||
#include <spa/utils/result.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
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#define MAP_LOCKED 0
|
||||
#endif
|
||||
|
||||
/* memfd_create(2) flags */
|
||||
|
||||
#ifndef MFD_CLOEXEC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue