ascii: Always include <sys/ioctl.h> if we're calling ioctl.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 21 Feb 2021 18:32:37 +0000 (10:32 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 21 Feb 2021 18:32:47 +0000 (10:32 -0800)
commit22c639606904655579afbff9dd0f6319becbb6dd
treeac9697f181b9f1805c9ff09f6e336343cfd3dd4f
parentf64e4aa7e0d79679631bab72721d55a304ba5a82
ascii: Always include <sys/ioctl.h> 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