[LTP] [PATCH] ioctl02: Use correct termios structure
Martin Doucha
mdoucha@suse.cz
Mon Feb 26 16:51:34 CET 2024
The termios structure definition in <termios.h> is incompatible
with direct ioctl() calls. The correct definition is in <asm/termbits.h>
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
testcases/kernel/syscalls/ioctl/ioctl02.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/ioctl/ioctl02.c b/testcases/kernel/syscalls/ioctl/ioctl02.c
index aab80b251..f3bfb239a 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl02.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl02.c
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <termios.h>
+#include <asm/termbits.h>
#include "lapi/ioctl.h"
#include "tst_test.h"
--
2.42.1
More information about the ltp
mailing list