]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
ioctl_tty.2: Update DTR example
authorPali Rohár <pali@kernel.org>
Sun, 8 Aug 2021 08:41:24 +0000 (10:41 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 9 Aug 2021 00:32:37 +0000 (02:32 +0200)
Do not include unused (and incompatible) header file termios.h and
include required header files for puts() and close() functions.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/ioctl_tty.2

index 46294e63fee27b8314c4dcbdfb4baf31248626ed..de6d1c839ffab2eec92d81d8e679a4c8aa63743a 100644 (file)
@@ -701,7 +701,8 @@ Insufficient permission.
 Check the condition of DTR on the serial port.
 .PP
 .EX
-#include <termios.h>
+#include <stdio.h>
+#include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>