I've applied your patch, but gcc 15.1.0 has decided that a 'struct
winsize *' not being a 'struct winsize *' is an error now.
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: cygwin
Compiler: gcc
Compilation CFLAGS: -Wno-error=incompatible-pointer-types
uname output: MSYS_NT-10.0-26100 Zack2021HPPavilion
3.6.3-ab81aae6.x86_64 2025-07-01 18:20 UTC x86_64 Msys
Machine Type: x86_64-pc-cygwin
Bash Version: 5.3
Patch Level: 0
Release Status: maint
Would be nice if bashbug were generated even if bash itself failed to build.
From before I changed CFLAGS, obviously:
winsize.c: In function 'get_new_window_size':
winsize.c:98:39: error: passing argument 2 of 'tcgetwinsize' from
incompatible pointer type [-Wincompatible-pointer-types]
98 | if (tty >= 0 && (tcgetwinsize (tty, &win) == 0) &&
win.ws_row > 0 && win.ws_col > 0)
| ^~~~
| |
| struct winsize *
In file included from /usr/include/sys/ioctl.h:15,
from winsize.c:31:
/usr/include/sys/termios.h:304:42: note: expected 'struct winsize *'
but argument is of type 'struct winsize *'
304 | int tcgetwinsize(int fd, struct winsize *winsz);