mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
test: unbreak FreeBSD
This commit is contained in:
parent
6186fc775d
commit
c3d7561d17
3 changed files with 5 additions and 2 deletions
|
|
@ -283,7 +283,7 @@ if cc.has_function('sigabbrev_np', prefix : '#include <string.h>', args : [ '-D_
|
||||||
cdata.set('HAVE_SIGABBREV_NP', 1)
|
cdata.set('HAVE_SIGABBREV_NP', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if cc.get_define('SYS_pidfd_open', prefix : '#include <syscall.h>') != ''
|
if cc.get_define('SYS_pidfd_open', prefix : '#include <sys/syscall.h>') != ''
|
||||||
cdata.set('HAVE_PIDFD_OPEN', 1)
|
cdata.set('HAVE_PIDFD_OPEN', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ pwtest_deps = [
|
||||||
mathlib,
|
mathlib,
|
||||||
dl_lib,
|
dl_lib,
|
||||||
cap_lib,
|
cap_lib,
|
||||||
|
epoll_shim_dep
|
||||||
]
|
]
|
||||||
|
|
||||||
pwtest_c_args = [
|
pwtest_c_args = [
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <syscall.h>
|
#if HAVE_PIDFD_OPEN
|
||||||
|
#include <sys/syscall.h>
|
||||||
|
#endif
|
||||||
#if HAVE_LIBCAP
|
#if HAVE_LIBCAP
|
||||||
#include <sys/capability.h>
|
#include <sys/capability.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue