Skip to content

Commit 240d061

Browse files
psumberanikic
authored andcommitted
Add support for Solaris 11.4 openpty implementation.
Closes GH-6287.
1 parent fc14dbb commit 240d061

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/standard/proc_open.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
# include <termios.h>
5757
# endif
5858
extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
59+
# elif defined(__sun)
60+
# include <termios.h>
5961
# else
6062
/* Mac OS X (and some BSDs) define `openpty` in <util.h> */
6163
# include <util.h>
@@ -66,7 +68,7 @@ extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
6668
# include <termios.h>
6769
# define HAVE_OPENPTY 1
6870

69-
/* Solaris/Illumos does not have any openpty implementation */
71+
/* Solaris before version 11.4 and Illumos do not have any openpty implementation */
7072
int openpty(int *master, int *slave, char *name, struct termios *termp, struct winsize *winp)
7173
{
7274
int fd, sd;

0 commit comments

Comments
 (0)