]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pidfs/selftests: ensure correct headers for ioctl handling
authorChristian Brauner <brauner@kernel.org>
Wed, 5 Mar 2025 10:08:18 +0000 (11:08 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Mar 2025 12:26:20 +0000 (13:26 +0100)
Ensure that necessary ioctl infrastructure is available.

Link: https://lore.kernel.org/r/20250305-work-pidfs-kill_on_last_close-v3-8-c8c3d8361705@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/pidfd/pidfd_setns_test.c

index 222f8131283b001ca6e9085fdb39384d797444e1..d9e715de68b3a617a87222dcf7b478d01a84a962 100644 (file)
@@ -16,7 +16,7 @@
 #include <unistd.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
-#include <linux/ioctl.h>
+#include <sys/ioctl.h>
 
 #include "pidfd.h"
 #include "../kselftest_harness.h"