From daf5ef1bbd4b8ceb005294c512004010010897b8 Mon Sep 17 00:00:00 2001 From: "David Adam (zanchey)" Date: Sun, 24 Feb 2013 23:00:54 +0800 Subject: Kill termio.h and sys/termios.h On FreeBSD, compilation complains that "this file includes which is deprecated, use instead". On Linux and FreeBSD, literally just pulls in . On OS X and Solaris, pulls in . doesn't exist on FreeBSD or Mac OS X, and on Linux is marked as deprecated and just includes . It does exist on Solaris, but no `struct termio` is ever actually used in the codebase. --- configure.ac | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c94fa5a6..f5a54837 100644 --- a/configure.ac +++ b/configure.ac @@ -537,7 +537,7 @@ LIBS=$LIBS_COMMON # Check presense of various header files # -AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h term.h ncurses/term.h ncurses.h curses.h stropts.h siginfo.h sys/select.h sys/ioctl.h sys/termios.h execinfo.h spawn.h]) +AC_CHECK_HEADERS([getopt.h termios.h sys/resource.h term.h ncurses/term.h ncurses.h curses.h stropts.h siginfo.h sys/select.h sys/ioctl.h execinfo.h spawn.h]) if test x$local_gettext != xno; then AC_CHECK_HEADERS([libintl.h]) @@ -620,13 +620,6 @@ for i in "" "-D_POSIX_C_SOURCE=200112L" "-D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=2 #include #endif - #ifdef HAVE_SYS_TERMIOS_H - /* Neither POSIX, C89 nor C99: a common extension. - * For: TIOCGWINSZ and struct winsize (under at least - * Solaris, NetBSD and (dual-listed) FreeBSD). */ - #include - #endif - #ifdef HAVE_SYS_IOCTL_H /* As above (under at least Linux and FreeBSD). */ #include @@ -750,8 +743,8 @@ AC_LINK_IFELSE( [ AC_LANG_PROGRAM( [ - #ifdef HAVE_SYS_TERMIOS_H - #include + #ifdef HAVE_TERMIOS_H + #include #endif #ifdef HAVE_SYS_IOCTL_H -- cgit v1.2.3