pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/vte3/patches Add NetBSD fix patch.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5f69980341b1
branches:  trunk
changeset: 380346:5f69980341b1
user:      youri <youri%pkgsrc.org@localhost>
date:      Mon May 14 13:55:23 2018 +0000

description:
Add NetBSD fix patch.

diffstat:

 x11/vte3/patches/patch-src_pty.cc |  20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 0580cfb17863 -r 5f69980341b1 x11/vte3/patches/patch-src_pty.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/vte3/patches/patch-src_pty.cc Mon May 14 13:55:23 2018 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_pty.cc,v 1.1 2018/05/14 13:55:23 youri Exp $
+
+NetBSD fix
+
+--- src/pty.cc.orig    2018-04-09 21:43:51.000000000 +0000
++++ src/pty.cc
+@@ -624,7 +624,12 @@ _vte_pty_open_posix(void)
+         fd = posix_openpt(O_RDWR | O_NOCTTY | O_NONBLOCK | O_CLOEXEC);
+ #ifndef __linux__
+         /* Other kernels may not support CLOEXEC or NONBLOCK above, so try to fall back */
+-        bool need_cloexec = false, need_nonblocking = false;
++        bool need_cloexec = false;
++#if __NetBSD__
++      bool need_nonblocking = true;
++#else
++      bool need_nonblocking = false;
++#endif
+         if (fd == -1 && errno == EINVAL) {
+                 /* Try without NONBLOCK and apply the flag afterward */
+                 need_nonblocking = true;



Home | Main Index | Thread Index | Old Index