From: Christian Goeschel Ndjomouo Date: Thu, 4 Dec 2025 01:38:11 +0000 (-0500) Subject: include: (pidfd-utils.h) conditionally define pidfd inode support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=967fb9cbc2837263f7a44449c3f8e1a89251844a;p=thirdparty%2Futil-linux.git include: (pidfd-utils.h) conditionally define pidfd inode support Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h index 1b9f4dc4f..cfa1d862c 100644 --- a/include/pidfd-utils.h +++ b/include/pidfd-utils.h @@ -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