(mapcar1): Handle bool-vectors.
[bpt/emacs.git] / src / terminfo.c
index ab6ab9e..4bb4799 100644 (file)
@@ -26,12 +26,18 @@ Boston, MA 02111-1307, USA.  */
 
 char *UP, *BC, PC;
 
-#ifdef HAVE_TERMIOS_H
+#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.  */
 speed_t ospeed;
 #else
 short ospeed;
 #endif
+#endif
 
 static buffer[512];