summaryrefslogtreecommitdiffstats
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-05-08 12:27:38 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-05-08 15:36:40 +0200
commitd6bfc3d88948edff6a1d683bb3ab4187730ac0a7 (patch)
tree1859e9c75f0e4c4b6bb63e453688ca31e1038699 /src/basic
parentfirewall-util-iptables: update ELF note to mention "iptables" (diff)
downloadsystemd-d6bfc3d88948edff6a1d683bb3ab4187730ac0a7.tar.xz
systemd-d6bfc3d88948edff6a1d683bb3ab4187730ac0a7.zip
pidfd: properly detect if libc offers pidfd syscalls and make use of them then
We never updated the meson checks when glibc finally learned about these syscalls, address that.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/pidref.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/pidref.c b/src/basic/pidref.c
index 875fa11bea..ae04dd72a4 100644
--- a/src/basic/pidref.c
+++ b/src/basic/pidref.c
@@ -1,5 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#if HAVE_PIDFD_OPEN
+#include <sys/pidfd.h>
+#endif
+
#include "errno-util.h"
#include "fd-util.h"
#include "missing_syscall.h"