summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-28 17:04:18 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-28 17:04:18 +0000
commit277742f846f6623887cce884a8b7d27d8595f900 (patch)
treeb5ed3355d2354af0ad791731d0a814a5398b65c8 /src/sysdep.c
parent79aa44f4faebca2b709092f3ce1de776bbc31967 (diff)
downloademacs-277742f846f6623887cce884a8b7d27d8595f900.tar.gz
[HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index a72d1977dd3..098612a1bb5 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -226,6 +226,9 @@ static int baud_convert[] =
};
#endif
+#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
+extern 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.
@@ -234,6 +237,7 @@ extern speed_t ospeed;
#else
extern short ospeed;
#endif
+#endif
/* The file descriptor for Emacs's input terminal.
Under Unix, this is normally zero except when using X;