diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tty_conv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/tty_conv.c b/examples/tty_conv.c index 23f0684c..9a0e1ad9 100644 --- a/examples/tty_conv.c +++ b/examples/tty_conv.c @@ -6,8 +6,9 @@ #include <string.h> #include <errno.h> #include <unistd.h> -#include <termio.h> +#include <termios.h> #include <security/pam_appl.h> +#include <sys/ioctl.h> /*************************************** * @brief echo off/on @@ -16,7 +17,7 @@ ***************************************/ static void echoOff(int fd, int off) { - struct termio tty; + struct termios tty; if (ioctl(fd, TCGETA, &tty) < 0) { fprintf(stderr, "TCGETA failed: %s\n", strerror(errno)); |