diff -ruN a/common/common-pidfds.c b/common/common-pidfds.c
--- a/common/common-pidfds.c	2021-02-18 20:00:12.000000000 +0100
+++ b/common/common-pidfds.c	2023-09-07 08:57:42.954362763 +0200
@@ -58,6 +58,8 @@
 {
 	return (int)syscall(__NR_pidfd_open, pid, flags);
 }
+#else
+#include <sys/pidfd.h>
 #endif
 
 /* pidfd functions */
