diff options
| author | Brian Fox | 1993-10-05 01:29:54 +0000 |
|---|---|---|
| committer | Brian Fox | 1993-10-05 01:29:54 +0000 |
| commit | 9825c716add4ee43684e9eb0b1462d8e5b9bc653 (patch) | |
| tree | c0cac59c8caa063066db0257b0e6165413d16194 /src | |
| parent | eab22e273c4520efbf75836d6d533f083e7890f1 (diff) | |
| download | emacs-9825c716add4ee43684e9eb0b1462d8e5b9bc653.tar.gz emacs-9825c716add4ee43684e9eb0b1462d8e5b9bc653.zip | |
If POSIX and HAVE_UNISTD_H are defined, and unistd.h hasn't already
been included, include it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/systty.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/systty.h b/src/systty.h index 5d651877c95..67bf3bf240d 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -114,11 +114,18 @@ static struct sensemode { | |||
| 114 | #ifdef AIX | 114 | #ifdef AIX |
| 115 | #include <sys/pty.h> | 115 | #include <sys/pty.h> |
| 116 | #include <unistd.h> | 116 | #include <unistd.h> |
| 117 | #define UNISTD_H_INCLUDED | ||
| 117 | #endif /* AIX */ | 118 | #endif /* AIX */ |
| 118 | 119 | ||
| 119 | #ifdef IRIX4 | 120 | #ifdef IRIX4 |
| 120 | /* Get _getpty prototype */ | 121 | /* Get _getpty prototype */ |
| 121 | #include <unistd.h> | 122 | #include <unistd.h> |
| 123 | #define UNISTD_H_INCLUDED | ||
| 124 | #endif | ||
| 125 | |||
| 126 | #if defined (POSIX) && !defined (UNISTD_H_INCLUDED) && defined (HAVE_UNISTD_H) | ||
| 127 | #include <unistd.h> | ||
| 128 | #define UNISTD_H_INCLUDED | ||
| 122 | #endif | 129 | #endif |
| 123 | 130 | ||
| 124 | #ifdef SYSV_PTYS | 131 | #ifdef SYSV_PTYS |