From 79216cc1fa5fc1a0571efdd8d84f794326785207 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 12 Aug 2024 20:11:19 -0700 Subject: [PATCH] termios tests: Check for struct winsize. * tests/test-termios.c (t2): Make sure inclusion of termios.h allows use of struct winsize. --- ChangeLog | 4 ++++ tests/test-termios.c | 1 + 2 files changed, 5 insertions(+) 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) -- 2.39.5