Re: termios.h not included if sys/ioctl.h provides struct winsize

2024-08-13 Thread Chet Ramey
On 8/12/24 10:18 PM, Grisha Levit wrote: On e.g. Alpine Linux, the following are set by configure: bash_cv_struct_winsize_ioctl='yes' bash_cv_struct_winsize_termios='yes' bash_cv_struct_winsize_header='ioctl_h' ac_cv_func_tcgetwinsize='yes' and so config.h ends up with:

termios.h not included if sys/ioctl.h provides struct winsize

2024-08-12 Thread Grisha Levit
On e.g. Alpine Linux, the following are set by configure: bash_cv_struct_winsize_ioctl='yes' bash_cv_struct_winsize_termios='yes' bash_cv_struct_winsize_header='ioctl_h' ac_cv_func_tcgetwinsize='yes' and so config.h ends up with: #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 /* #