pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/vte3/patches



Module Name:    pkgsrc
Committed By:   youri
Date:           Mon May 14 13:55:23 UTC 2018

Added Files:
        pkgsrc/x11/vte3/patches: patch-src_pty.cc

Log Message:
Add NetBSD fix patch.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/vte3/patches/patch-src_pty.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/x11/vte3/patches/patch-src_pty.cc
diff -u /dev/null pkgsrc/x11/vte3/patches/patch-src_pty.cc:1.1
--- /dev/null   Mon May 14 13:55:23 2018
+++ pkgsrc/x11/vte3/patches/patch-src_pty.cc    Mon May 14 13:55:23 2018
@@ -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