ruby-changes:54976
From: naruse <ko1@a...>
Date: Wed, 6 Mar 2019 18:48:45 +0900 (JST)
Subject: [ruby-changes:54976] naruse:r67183 (trunk): Fix PTY.open on OpenBSD [Bug #15607]
naruse 2019-03-06 18:48:39 +0900 (Wed, 06 Mar 2019) New Revision: 67183 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67183 Log: Fix PTY.open on OpenBSD [Bug #15607] From: Jeremy Evans <code@j...> Modified files: trunk/ext/pty/pty.c Index: ext/pty/pty.c =================================================================== --- ext/pty/pty.c (revision 67182) +++ ext/pty/pty.c (revision 67183) @@ -247,7 +247,7 @@ get_device_once(int *master, int *slave, https://github.com/ruby/ruby/blob/trunk/ext/pty/pty.c#L247 int masterfd = -1, slavefd = -1; char *slavedevice; -#if defined(__sun) || (defined(__FreeBSD__) && __FreeBSD_version < 902000) +#if defined(__sun) || defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD_version < 902000) /* workaround for Solaris 10: grantpt() doesn't work if FD_CLOEXEC is set. [ruby-dev:44688] */ /* FreeBSD 9.2 or later supports O_CLOEXEC * http://www.freebsd.org/cgi/query-pr.cgi?pr=162374 */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/