mirror of https://github.com/mkerrisk/man-pages
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>
This commit is contained in:
parent
d192b1c7b4
commit
95dedaa061
|
@ -701,7 +701,8 @@ Insufficient permission.
|
||||||
Check the condition of DTR on the serial port.
|
Check the condition of DTR on the serial port.
|
||||||
.PP
|
.PP
|
||||||
.EX
|
.EX
|
||||||
#include <termios.h>
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue