diff options
Diffstat (limited to 'src/stty.c')
| -rw-r--r-- | src/stty.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stty.c b/src/stty.c index eabda01c4..9e1ba0a7c 100644 --- a/src/stty.c +++ b/src/stty.c @@ -36,28 +36,28 @@ #include <stdio.h> #include <sys/types.h> + #if HAVE_TERMIOS_H # include <termios.h> #endif -#ifdef GWINSZ_IN_SYS_IOCTL +#if HAVE_STROPTS_H +# include <stropts.h> +#endif +#ifdef HAVE_SYS_IOCTL_H # include <sys/ioctl.h> #endif + #ifdef WINSIZE_IN_PTEM # include <sys/stream.h> # include <sys/ptem.h> #endif #ifdef GWINSZ_IN_SYS_PTY -# include <sys/ioctl.h> # include <sys/tty.h> # include <sys/pty.h> #endif #include <getopt.h> #include <stdarg.h> -#if HAVE_STROPT_H -# include <stropt.h> -#endif - #include "system.h" #include "error.h" #include "fd-reopen.h" |
