diff options
-rw-r--r-- | src/stty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c index 302e7466f..0a3a33593 100644 --- a/src/stty.c +++ b/src/stty.c @@ -35,7 +35,9 @@ #include <stdio.h> #include <sys/types.h> -#include <termios.h> +#if HAVE_TERMIOS_H +# include <termios.h> +#endif #ifdef GWINSZ_IN_SYS_IOCTL # include <sys/ioctl.h> #endif |