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 | 668cbbfea3d41eb7673fd7bac230f7a74a2f9bdc (patch) | |
tree | 24d3f4b19a78a2d82f56e38abb9d169b88a6e8cb /src/systty.h | |
parent | 9e9f82a8e85f74c41e8d2799897b95ff79c31a7f (diff) | |
download | emacs-668cbbfea3d41eb7673fd7bac230f7a74a2f9bdc.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 |