summaryrefslogtreecommitdiff
path: root/x11/vte3
diff options
context:
space:
mode:
authoryouri <youri@pkgsrc.org>2018-05-14 13:55:23 +0000
committeryouri <youri@pkgsrc.org>2018-05-14 13:55:23 +0000
commitc109a7a00fdb92a18922c4e2e3bd70daa49a8dab (patch)
treeb8b09dddc92de1aab1ca7994329aa8ad56ac5ad1 /x11/vte3
parent4e9db67f9afc411f295545834e828aaa917ed56f (diff)
downloadpkgsrc-c109a7a00fdb92a18922c4e2e3bd70daa49a8dab.tar.gz
Add NetBSD fix patch.
Diffstat (limited to 'x11/vte3')
-rw-r--r--x11/vte3/patches/patch-src_pty.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/vte3/patches/patch-src_pty.cc b/x11/vte3/patches/patch-src_pty.cc
new file mode 100644
index 00000000000..33a20bf82c5
--- /dev/null
+++ b/x11/vte3/patches/patch-src_pty.cc
@@ -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;