diff options
author | Petr Sumbera <petr.sumbera@oracle.com> | 2020-10-06 17:25:00 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-09 16:10:03 +0200 |
commit | 240d06118c5c5a64f592da4d7d9cd5cb078b8668 (patch) | |
tree | bdcdeeff60ee43774e8609bbbc977f78a5ba9371 | |
parent | fc14dbb7132f03e26b04f7cb7ed7820be68acebb (diff) | |
download | php-git-240d06118c5c5a64f592da4d7d9cd5cb078b8668.tar.gz |
Add support for Solaris 11.4 openpty implementation.
Closes GH-6287.
-rw-r--r-- | ext/standard/proc_open.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 6d0e74af1d..03b55c3eac 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -56,6 +56,8 @@ # include <termios.h> # endif extern int openpty(int *, int *, char *, struct termios *, struct winsize *); +# elif defined(__sun) +# include <termios.h> # else /* Mac OS X (and some BSDs) define `openpty` in <util.h> */ # include <util.h> @@ -66,7 +68,7 @@ extern int openpty(int *, int *, char *, struct termios *, struct winsize *); # include <termios.h> # define HAVE_OPENPTY 1 -/* Solaris/Illumos does not have any openpty implementation */ +/* Solaris before version 11.4 and Illumos do not have any openpty implementation */ int openpty(int *master, int *slave, char *name, struct termios *termp, struct winsize *winp) { int fd, sd; |