From 22c639606904655579afbff9dd0f6319becbb6dd Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 21 Feb 2021 10:32:37 -0800 Subject: [PATCH] ascii: Always include if we're calling ioctl. This file included sys/ioctl.h if it was necessary to use the TIOCGWINSZ constant, but in fact it's needed to call ioctl() at all, so this commit moves the #include so that it's included whenever we use ioctl(). Bug #60069. Reported by Jeremy Lavergne. --- src/output/ascii.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/output/ascii.c b/src/output/ascii.c index ee87fa22e3..cd5fcec64b 100644 --- a/src/output/ascii.c +++ b/src/output/ascii.c @@ -28,11 +28,8 @@ #include #ifdef HAVE_TERMIOS_H -# include -#endif - -#ifdef GWINSZ_IN_SYS_IOCTL # include +# include #endif #include "data/file-name.h" -- 2.30.2