diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/systty.h | 13 |
1 files changed, 2 insertions, 11 deletions
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 { | |||
| 138 | #if defined (HPUX) && defined (HAVE_PTYS) | 138 | #if defined (HPUX) && defined (HAVE_PTYS) |
| 139 | #include <sys/ptyio.h> | 139 | #include <sys/ptyio.h> |
| 140 | #endif | 140 | #endif |
| 141 | 141 | ||
| 142 | #ifdef AIX | 142 | #ifdef AIX |
| 143 | #include <sys/pty.h> | 143 | #include <sys/pty.h> |
| 144 | #include <unistd.h> | ||
| 145 | #define UNISTD_H_INCLUDED | ||
| 146 | #endif /* AIX */ | 144 | #endif /* AIX */ |
| 147 | 145 | ||
| 148 | #ifdef IRIX4 | 146 | #if (defined (POSIX) || defined (NEED_UNISTD_H)) && defined (HAVE_UNISTD_H) |
| 149 | /* Get _getpty prototype */ | ||
| 150 | #include <unistd.h> | ||
| 151 | #define UNISTD_H_INCLUDED | ||
| 152 | #endif | ||
| 153 | |||
| 154 | #if defined (POSIX) && !defined (UNISTD_H_INCLUDED) && defined (HAVE_UNISTD_H) | ||
| 155 | #include <unistd.h> | 147 | #include <unistd.h> |
| 156 | #define UNISTD_H_INCLUDED | ||
| 157 | #endif | 148 | #endif |
| 158 | 149 | ||
| 159 | #ifdef SYSV_PTYS | 150 | #ifdef SYSV_PTYS |