changeset 10076:a7308fb078c9

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.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Nov 1994 17:59:41 +0000
parents bf0eb7f0717b
children ee5e9fbcd051
files src/systty.h
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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 <sys/ptyio.h>
 #endif
-  
+
 #ifdef AIX
 #include <sys/pty.h>
-#include <unistd.h>
-#define UNISTD_H_INCLUDED
 #endif /* AIX */
 
-#ifdef IRIX4
-/* Get _getpty prototype */
+#if (defined (POSIX) || defined (NEED_UNISTD_H)) && defined (HAVE_UNISTD_H)
 #include <unistd.h>
-#define UNISTD_H_INCLUDED
-#endif
-
-#if defined (POSIX) && !defined (UNISTD_H_INCLUDED) && defined (HAVE_UNISTD_H)
-#include <unistd.h>
-#define UNISTD_H_INCLUDED
 #endif
 
 #ifdef SYSV_PTYS