Message ID | 20250115105211.390370-2-ps.report@gmx.net (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v1,1/3] selftests: pidfd: add missing sys/mount.h include in pidfd_fdinfo_test.c | expand |
diff --git a/tools/testing/selftests/pidfd/pidfd_setns_test.c b/tools/testing/selftests/pidfd/pidfd_setns_test.c index 222f8131283b..4c8a0253a64f 100644 --- a/tools/testing/selftests/pidfd/pidfd_setns_test.c +++ b/tools/testing/selftests/pidfd/pidfd_setns_test.c @@ -17,6 +17,7 @@ #include <sys/socket.h> #include <sys/stat.h> #include <linux/ioctl.h> +#include <sys/ioctl.h> #include "pidfd.h" #include "../kselftest_harness.h"
Fix compile on openSUSE Tumbleweed (gcc-14.2.1, glibc-2.40): - add missing sys/ioctl.h include Fixes: pidfd_setns_test.c: In function ‘current_nsset_setup’: pidfd_setns_test.c:172:54: error: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration] 172 | self->child_pidfd_derived_nsfds[i] = ioctl(self->pidfd, info->pidfd_ioctl, 0); | ^~~~~ Signed-off-by: Peter Seiderer <ps.report@gmx.net> --- tools/testing/selftests/pidfd/pidfd_setns_test.c | 1 + 1 file changed, 1 insertion(+)