meson.build: check for SYS_pidfd_open

This commit is contained in:
Peter Hutterer 2021-06-10 15:12:12 +10:00
parent 18b3efa2ed
commit 14eb43ea86
3 changed files with 9 additions and 0 deletions

View file

@ -282,6 +282,10 @@ if cc.has_function('sigabbrev_np', prefix : '#include <string.h>', args : [ '-D_
cdata.set('HAVE_SIGABBREV_NP', 1)
endif
if cc.get_define('SYS_pidfd_open', prefix : '#include <syscall.h>') != ''
cdata.set('HAVE_PIDFD_OPEN', 1)
endif
systemd = dependency('systemd', required: get_option('systemd'))
systemd_dep = dependency('libsystemd',required: get_option('systemd'))
if systemd.found() and systemd_dep.found()