aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-08-08 10:41:24 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-09 02:32:37 +0200
commit95dedaa0614915ac91a7175359f17fa8bb54614c (patch)
tree733d2d28657d2b9a1a3e102915144701aab611d0 /man2
parentd192b1c7b479721825b42ec27b54db2cd5002610 (diff)
downloadman-pages-95dedaa0614915ac91a7175359f17fa8bb54614c.tar.gz
ioctl_tty.2: Update DTR example
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>
Diffstat (limited to 'man2')
-rw-r--r--man2/ioctl_tty.23
1 files changed, 2 insertions, 1 deletions
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index 46294e63fe..de6d1c839f 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -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>