We require termios.h.
authorayin <ayin>
Tue, 11 Dec 2007 11:39:06 +0000 (11:39 +0000)
committerayin <ayin>
Tue, 11 Dec 2007 11:39:06 +0000 (11:39 +0000)
configure.ac
src/init.C
src/main.C

index c1753af5f3ddf5f9842fbdb8aabaa53813246b1f..f7c6e5ba90b1611391c485e0d3d16ba1e74f42d4 100644 (file)
@@ -482,7 +482,6 @@ AC_CHECK_HEADERS( \
        stdarg.h \
        stdlib.h \
        string.h \
-       termios.h \
        unistd.h \
        sys/byteorder.h \
        sys/ioctl.h \
@@ -501,9 +500,8 @@ dnl# check to allow both <termios.h> and <sys/ioctl.h>
 AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
 #include <sys/ioctl.h>
-#ifdef HAVE_TERMIOS_H
 #include <termios.h>
-#endif]], [[int a = ECHO;]])],[rxvt_cv_header_sysioctl=yes],[rxvt_cv_header_sysioctl=no])])
+]], [[int a = ECHO;]])],[rxvt_cv_header_sysioctl=yes],[rxvt_cv_header_sysioctl=no])])
 
 AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])])
index 101ec96afc7fdd392849c9069162a23cea66443f..94c00a3777c36e5f71040c6ed72e56919e49a30e 100644 (file)
@@ -1228,7 +1228,6 @@ rxvt_get_ttymode (ttymode_t *tio, int erase)
    * Debugging
    */
 #ifdef DEBUG_TTYMODE
-#ifdef HAVE_TERMIOS_H
   /* c_iflag bits */
   fprintf (stderr, "Input flags\n");
 
@@ -1301,7 +1300,6 @@ rxvt_get_ttymode (ttymode_t *tio, int erase)
 
   fprintf (stderr, "\n");
 # undef FOO
-# endif /* HAVE_TERMIOS_H */
 #endif /* DEBUG_TTYMODE */
 }
 
index 8c9fe7a2ffc2410fb451e7eca42713e9b3644246..7c80e23624ed26b02a87a641bc9690513ef89bf7 100644 (file)
@@ -40,9 +40,7 @@
 #include <csignal>
 #include <cstring>
 
-#ifdef HAVE_TERMIOS_H
 # include <termios.h>
-#endif
 
 #ifdef HAVE_XSETLOCALE
 # define X_LOCALE