# HG changeset patch # User Richard M. Stallman # Date 786045581 0 # Node ID a7308fb078c9d10fb229e6c0f921741ad187ea31 # Parent bf0eb7f0717b5106634ac3f443a0570a1695d741 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. diff -r bf0eb7f0717b -r a7308fb078c9 src/systty.h --- a/src/systty.h Mon Nov 28 16:53:54 1994 +0000 +++ b/src/systty.h Mon Nov 28 17:59:41 1994 +0000 @@ -138,22 +138,13 @@ #if defined (HPUX) && defined (HAVE_PTYS) #include #endif - + #ifdef AIX #include -#include -#define UNISTD_H_INCLUDED #endif /* AIX */ -#ifdef IRIX4 -/* Get _getpty prototype */ +#if (defined (POSIX) || defined (NEED_UNISTD_H)) && defined (HAVE_UNISTD_H) #include -#define UNISTD_H_INCLUDED -#endif - -#if defined (POSIX) && !defined (UNISTD_H_INCLUDED) && defined (HAVE_UNISTD_H) -#include -#define UNISTD_H_INCLUDED #endif #ifdef SYSV_PTYS