changeset 4822:4876bc32caf2

If POSIX and HAVE_UNISTD_H are defined, and unistd.h hasn't already been included, include it.
author Brian Fox <bfox@gnu.org>
date Tue, 05 Oct 1993 01:29:54 +0000
parents 2c16f99ef5dc
children ec62e93360d1
files src/systty.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/systty.h	Tue Oct 05 01:19:12 1993 +0000
+++ b/src/systty.h	Tue Oct 05 01:29:54 1993 +0000
@@ -114,11 +114,18 @@
 #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)
+#include <unistd.h>
+#define UNISTD_H_INCLUDED
 #endif
 
 #ifdef SYSV_PTYS