From 378ac3148e7e4c95490e46abd799c1d71ff7f262 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 28 Nov 1994 17:59:41 +0000 Subject: [PATCH] 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. --- src/systty.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/systty.h b/src/systty.h index b74215b84c..7bc1da206b 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 -- 2.20.1