]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include: (pidfd-utils.h) conditionally define pidfd inode support
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 4 Dec 2025 01:38:11 +0000 (20:38 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 4 Dec 2025 18:45:03 +0000 (13:45 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
include/pidfd-utils.h

index 1b9f4dc4fddcc3075705710dc701a3d92fe75d20..cfa1d862c515d33f121994f1e4e87b89b29457e4 100644 (file)
@@ -31,6 +31,9 @@
 # define PIDFD_GET_UTS_NAMESPACE               _IO(PIDFS_IOCTL_MAGIC, 10)
 #endif
 
+#if (defined(HAVE_PIDFD_OPEN) || defined(SYS_pidfd_open)) && defined(HAVE_STATX)
+#define USE_PIDFD_INO_SUPPORT 1
+#endif
 
 #ifdef HAVE_SYS_SYSCALL_H
 # include <sys/syscall.h>