aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-15 18:58:44 +0000
committerRichard M. Stallman1997-07-15 18:58:44 +0000
commit515b04d08c5064d710b753d74b0e2eef80992c3a (patch)
tree14e735d473ae6da9fd7adfc1e72c1184bdb036df /src
parenta2ad45b9aec9f87f07a2a8c2c58ed1768980efa9 (diff)
downloademacs-515b04d08c5064d710b753d74b0e2eef80992c3a.tar.gz
emacs-515b04d08c5064d710b753d74b0e2eef80992c3a.zip
Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/cm.h2
-rw-r--r--src/sysdep.c7
-rw-r--r--src/terminfo.c2
3 files changed, 4 insertions, 7 deletions
diff --git a/src/cm.h b/src/cm.h
index 5e0caa1fa5e..4567c4474a9 100644
--- a/src/cm.h
+++ b/src/cm.h
@@ -101,7 +101,7 @@ struct cm
101extern struct cm Wcm; /* Terminal capabilities */ 101extern struct cm Wcm; /* Terminal capabilities */
102extern char PC; /* Pad character */ 102extern char PC; /* Pad character */
103 103
104#if defined (HAVE_TERMIOS_H) || defined (LINUX) 104#if defined (HAVE_TERMIOS_H) && defined (LINUX)
105#include <termios.h> 105#include <termios.h>
106/* HJL's version of libc is said to need this on the Alpha. 106/* HJL's version of libc is said to need this on the Alpha.
107 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */ 107 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */
diff --git a/src/sysdep.c b/src/sysdep.c
index 63ffd28b5ba..a72d1977dd3 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -27,10 +27,6 @@ Boston, MA 02111-1307, USA. */
27#include "blockinput.h" 27#include "blockinput.h"
28#undef NULL 28#undef NULL
29 29
30#ifdef HAVE_TERMIOS_H
31#include <termios.h>
32#endif
33
34#define min(x,y) ((x) > (y) ? (y) : (x)) 30#define min(x,y) ((x) > (y) ? (y) : (x))
35 31
36/* In this file, open, read and write refer to the system calls, 32/* In this file, open, read and write refer to the system calls,
@@ -230,7 +226,8 @@ static int baud_convert[] =
230 }; 226 };
231#endif 227#endif
232 228
233#if defined (HAVE_TERMIOS_H) || defined (LINUX) 229#if defined (HAVE_TERMIOS_H) && defined (LINUX)
230#include <termios.h>
234/* HJL's version of libc is said to need this on the Alpha. 231/* HJL's version of libc is said to need this on the Alpha.
235 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */ 232 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */
236extern speed_t ospeed; 233extern speed_t ospeed;
diff --git a/src/terminfo.c b/src/terminfo.c
index ae015b9b6ad..870461f5a04 100644
--- a/src/terminfo.c
+++ b/src/terminfo.c
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */
26 26
27char *UP, *BC, PC; 27char *UP, *BC, PC;
28 28
29#if defined (HAVE_TERMIOS_H) || defined (LINUX) 29#if defined (HAVE_TERMIOS_H) && defined (LINUX)
30#include <termios.h> 30#include <termios.h>
31/* HJL's version of libc is said to need this on the Alpha. 31/* HJL's version of libc is said to need this on the Alpha.
32 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */ 32 On the other hand, DEC OSF1 on the Alpha needs ospeed to be a short. */