On 7/18/25 12:02 AM, Zachary Santer wrote:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcgetwinsize.html#tag_17_609says that if libc has tcgetwinsize(), you only need <termios.h> to get its declaration.I've attached the /usr/include/sys/termios.h file included in my MSYS2 installation. As you can see, struct winsize is defined after it is referenced in the function declarations of tcgetwinsize() and tcsetwinsize() in that file. I moved the definition of struct winsize to above the function declarations, and bash built without issue.
Thanks for tracking it down. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature