Replaced AC_HEADER_TIOCGWINSZ and always just include sys/ioctl.h if it is available - GH#74.

This commit is contained in:
Andrew Wood
2023-08-06 20:31:02 +01:00
parent 8e3b47bf89
commit c2e77cd005
9 changed files with 62 additions and 55 deletions
+1 -1
View File
@@ -33,7 +33,6 @@ AC_USE_SYSTEM_EXTENSIONS
AC_C_CONST
AC_HEADER_STDBOOL
AC_SYS_LARGEFILE
AC_HEADER_TIOCGWINSZ
AC_CHECK_FUNCS(getopt_long getopt)
AC_CHECK_HEADERS(getopt.h)
AC_CHECK_FUNCS(memcpy basename vsnprintf strlcat)
@@ -42,6 +41,7 @@ AC_CHECK_FUNCS(fpathconf sysconf posix_memalign)
AC_CHECK_HEADERS(limits.h)
AC_CHECK_HEADERS(wctype.h)
AC_CHECK_HEADERS(termios.h)
AC_CHECK_HEADERS(sys/ioctl.h)
AC_ARG_ENABLE(debugging,
[ --enable-debugging compile with debugging support],
+3 -3
View File
@@ -15,9 +15,6 @@
/* Enable native language support */
#undef ENABLE_NLS
/* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */
#undef GWINSZ_IN_SYS_IOCTL
/* Define to 1 if you have the `basename' function. */
#undef HAVE_BASENAME
@@ -96,6 +93,9 @@
/* Define to 1 if you have the `sysconf' function. */
#undef HAVE_SYSCONF
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
/* Define to 1 if you have the <sys/ipc.h> header file. */
#undef HAVE_SYS_IPC_H