From d94b54ec17d1f3bcd80175a4d8cd16a2b8bccdcd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 9 Jul 2005 07:39:04 +0000 Subject: [PATCH] Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h. stropt.h -> stropts.h --- src/stty.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/stty.c b/src/stty.c index eabda01c46..9e1ba0a7c0 100644 --- a/src/stty.c +++ b/src/stty.c @@ -36,28 +36,28 @@ #include #include + #if HAVE_TERMIOS_H # include #endif -#ifdef GWINSZ_IN_SYS_IOCTL +#if HAVE_STROPTS_H +# include +#endif +#ifdef HAVE_SYS_IOCTL_H # include #endif + #ifdef WINSIZE_IN_PTEM # include # include #endif #ifdef GWINSZ_IN_SYS_PTY -# include # include # include #endif #include #include -#if HAVE_STROPT_H -# include -#endif - #include "system.h" #include "error.h" #include "fd-reopen.h" -- 2.47.3