summaryrefslogtreecommitdiffstats
path: root/src/basic/pidref.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-11-19 20:03:55 +0100
committerMike Yuan <me@yhndnzj.com>2025-01-04 16:58:13 +0100
commitb234026d09a1ec3bd548efe6185c7c1de4498a96 (patch)
treec5ef8a02322424233d8086ed7d3841a062b81c5d /src/basic/pidref.c
parentptyfwd: fix typo (diff)
downloadsystemd-b234026d09a1ec3bd548efe6185c7c1de4498a96.tar.xz
systemd-b234026d09a1ec3bd548efe6185c7c1de4498a96.zip
process-util: extract pidfd-related funcs into pidfd-util.[ch]
Diffstat (limited to 'src/basic/pidref.c')
-rw-r--r--src/basic/pidref.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/basic/pidref.c b/src/basic/pidref.c
index 5e4b3438c1..ecea98fe6d 100644
--- a/src/basic/pidref.c
+++ b/src/basic/pidref.c
@@ -1,15 +1,12 @@
/* 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_magic.h"
#include "missing_syscall.h"
#include "missing_wait.h"
#include "parse-util.h"
+#include "pidfd-util.h"
#include "pidref.h"
#include "process-util.h"
#include "signal-util.h"