From 6335d0fe0f00d6ff81e30c6c27e847c68104ebb6 Mon Sep 17 00:00:00 2001 From: Anthony Howe Date: Thu, 4 Jul 2024 15:48:21 -0400 Subject: [PATCH] Fix test for `ioctl.h` version of `struct winsize`. --- aclocal.m4 | 2 ++ configure | 2 ++ 2 files changed, 4 insertions(+) diff --git a/aclocal.m4 b/aclocal.m4 index 207ef06..cc9811f 100755 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1237,11 +1237,13 @@ AC_DEFUN(SNERT_TERMIOS,[ echo AC_CHECK_HEADERS([termios.h],[ AC_CHECK_FUNCS(tcgetattr tcsetattr tcgetwinsize tcsetwinsize ctermid) + unset ac_cv_type_struct_winsize AC_CHECK_TYPES([struct winsize],[],[],[ #include ]) ]) AC_CHECK_HEADERS([sys/ioctl.h],[ + unset ac_cv_type_struct_winsize AC_CHECK_TYPES([struct winsize],[],[],[ #include ]) diff --git a/configure b/configure index e1eef11..80d6080 100755 --- a/configure +++ b/configure @@ -8368,6 +8368,7 @@ then : fi + unset ac_cv_type_struct_winsize ac_fn_c_check_type "$LINENO" "struct winsize" "ac_cv_type_struct_winsize" " #include @@ -8391,6 +8392,7 @@ if test "x$ac_cv_header_sys_ioctl_h" = xyes then : printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h + unset ac_cv_type_struct_winsize ac_fn_c_check_type "$LINENO" "struct winsize" "ac_cv_type_struct_winsize" " #include