]> granicus.if.org Git - php/commitdiff
Add support for Solaris 11.4 openpty implementation.
authorPetr Sumbera <petr.sumbera@oracle.com>
Tue, 6 Oct 2020 15:25:00 +0000 (17:25 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 9 Oct 2020 14:10:03 +0000 (16:10 +0200)
Closes GH-6287.

ext/standard/proc_open.c

index 6d0e74af1d045b17915ecbf07b7473a6cde4f4eb..03b55c3eac06a4fa116d1a15e367e075284a5031 100644 (file)
@@ -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;