From: "Pali Rohár" <pali@kernel.org>
To: linux-man@vger.kernel.org,
Alejandro Colomar <alx.manpages@gmail.com>,
Michael Kerrisk <mtk.manpages@gmail.com>
Subject: [PATCH] ioctl_tty.2: Update DTR example
Date: Fri, 30 Jul 2021 12:54:44 +0200 [thread overview]
Message-ID: <20210730105444.10483-1-pali@kernel.org> (raw)
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>
---
man2/ioctl_tty.2 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index 91aceddb7828..b5356738d4bb 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -743,7 +743,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>
--
2.20.1
next reply other threads:[~2021-07-30 10:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-30 10:54 Pali Rohár [this message]
2021-07-30 18:22 ` [PATCH] ioctl_tty.2: Update DTR example Alejandro Colomar (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210730105444.10483-1-pali@kernel.org \
--to=pali@kernel.org \
--cc=alx.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox