From: Richard M. Stallman Date: Mon, 28 Nov 1994 17:59:41 +0000 (+0000) Subject: Have just one conditional to include unistd.h. X-Git-Tag: emacs-19.34~5779 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=378ac3148e7e4c95490e46abd799c1d71ff7f262;p=emacs.git 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 --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 #endif - + #ifdef AIX #include -#include -#define UNISTD_H_INCLUDED #endif /* AIX */ -#ifdef IRIX4 -/* Get _getpty prototype */ -#include -#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 -#define UNISTD_H_INCLUDED #endif #ifdef SYSV_PTYS