diff options
| author | Richard M. Stallman | 1994-11-28 17:59:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-11-28 17:59:41 +0000 |
| commit | 378ac3148e7e4c95490e46abd799c1d71ff7f262 (patch) | |
| tree | 726863928d5959658394bc76436f4fff95efbe5b | |
| parent | caeb79ef07ed5baf1418fd3cc8644ac1bc21b13e (diff) | |
| download | emacs-378ac3148e7e4c95490e46abd799c1d71ff7f262.tar.gz emacs-378ac3148e7e4c95490e46abd799c1d71ff7f262.zip | |
Have just one conditional to include unistd.h.
Test NEED_UNISTD_H, not AIX and IRIX4.
(UNISTD_H_INCLUDED): Don't define or test this.
| -rw-r--r-- | src/systty.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/systty.h b/src/systty.h index b74215b84c1..7bc1da206b3 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -138,22 +138,13 @@ static struct sensemode { | |||
| 138 | #if defined (HPUX) && defined (HAVE_PTYS) | 138 | #if defined (HPUX) && defined (HAVE_PTYS) |
| 139 | #include <sys/ptyio.h> | 139 | #include <sys/ptyio.h> |
| 140 | #endif | 140 | #endif |
| 141 | 141 | ||
| 142 | #ifdef AIX | 142 | #ifdef AIX |
| 143 | #include <sys/pty.h> | 143 | #include <sys/pty.h> |
| 144 | #include <unistd.h> | ||
| 145 | #define UNISTD_H_INCLUDED | ||
| 146 | #endif /* AIX */ | 144 | #endif /* AIX */ |
| 147 | 145 | ||
| 148 | #ifdef IRIX4 | 146 | #if (defined (POSIX) || defined (NEED_UNISTD_H)) && defined (HAVE_UNISTD_H) |
| 149 | /* Get _getpty prototype */ | ||
| 150 | #include <unistd.h> | ||
| 151 | #define UNISTD_H_INCLUDED | ||
| 152 | #endif | ||
| 153 | |||
| 154 | #if defined (POSIX) && !defined (UNISTD_H_INCLUDED) && defined (HAVE_UNISTD_H) | ||
| 155 | #include <unistd.h> | 147 | #include <unistd.h> |
| 156 | #define UNISTD_H_INCLUDED | ||
| 157 | #endif | 148 | #endif |
| 158 | 149 | ||
| 159 | #ifdef SYSV_PTYS | 150 | #ifdef SYSV_PTYS |