From: Collin Funk Date: Tue, 13 Aug 2024 03:11:19 +0000 (-0700) Subject: termios tests: Check for struct winsize. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=79216cc1fa5fc1a0571efdd8d84f794326785207;p=gnulib.git termios tests: Check for struct winsize. * tests/test-termios.c (t2): Make sure inclusion of termios.h allows use of struct winsize. --- diff --git a/ChangeLog b/ChangeLog index b6c173ab03..300af4c444 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2024-08-12 Collin Funk + termios tests: Check for struct winsize. + * tests/test-termios.c (t2): Make sure inclusion of termios.h allows use + of struct winsize. + termios: Define struct winsize on all platforms. * doc/posix-headers/termios.texi (termios.h): Mention struct winsize is defined in on glibc. diff --git a/tests/test-termios.c b/tests/test-termios.c index 93a6b458cf..fdc01f13e5 100644 --- a/tests/test-termios.c +++ b/tests/test-termios.c @@ -22,6 +22,7 @@ /* Check that the types are all defined. */ pid_t t1; +struct winsize t2; int main (void)