(detect_coding_iso2022): Do not exclude posibility of
[bpt/emacs.git] / src / terminfo.c
index ae015b9..4bb4799 100644 (file)
@@ -26,7 +26,10 @@ Boston, MA 02111-1307, USA.  */
 
 char *UP, *BC, PC;
 
-#if defined (HAVE_TERMIOS_H) || defined (LINUX)
+#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
+short ospeed;
+#else
+#if defined (HAVE_TERMIOS_H) && defined (LINUX)
 #include <termios.h>
 /* HJL's version of libc is said to need this on the Alpha.
    On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short.  */
@@ -34,6 +37,7 @@ speed_t ospeed;
 #else
 short ospeed;
 #endif
+#endif
 
 static buffer[512];