diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-11-28 17:59:41 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-11-28 17:59:41 +0000 |
commit | 378ac3148e7e4c95490e46abd799c1d71ff7f262 (patch) | |
tree | 726863928d5959658394bc76436f4fff95efbe5b /src/systty.h | |
parent | caeb79ef07ed5baf1418fd3cc8644ac1bc21b13e (diff) | |
download | emacs-378ac3148e7e4c95490e46abd799c1d71ff7f262.tar.gz |
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.
Diffstat (limited to 'src/systty.h')
-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 { #if defined (HPUX) && defined (HAVE_PTYS) #include <sys/ptyio.h> #endif - + #ifdef AIX #include <sys/pty.h> -#include <unistd.h> -#define UNISTD_H_INCLUDED #endif /* AIX */ -#ifdef IRIX4 -/* Get _getpty prototype */ -#include <unistd.h> -#define UNISTD_H_INCLUDED -#endif - -#if defined (POSIX) && !defined (UNISTD_H_INCLUDED) && defined (HAVE_UNISTD_H) +#if (defined (POSIX) || defined (NEED_UNISTD_H)) && defined (HAVE_UNISTD_H) #include <unistd.h> -#define UNISTD_H_INCLUDED #endif #ifdef SYSV_PTYS |