Unbreak runtime by using posix_openpt; I'm not quite sure how I missed this
in my tests...
This commit is contained in:
parent
1e474f48e1
commit
5f499734df
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2012/11/13 08:24:52 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2012/12/13 19:37:50 ajacoutot Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -6,6 +6,7 @@ COMMENT= terminal emulation library
|
||||
|
||||
GNOME_PROJECT= vte
|
||||
GNOME_VERSION= 0.34.2
|
||||
REVISION= 0
|
||||
|
||||
PKGNAME= vte3-${GNOME_VERSION}
|
||||
|
||||
|
16
devel/vte3/patches/patch-src_pty_c
Normal file
16
devel/vte3/patches/patch-src_pty_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_pty_c,v 1.5 2012/12/13 19:37:50 ajacoutot Exp $
|
||||
--- src/pty.c.orig Thu Dec 13 20:33:04 2012
|
||||
+++ src/pty.c Thu Dec 13 20:33:27 2012
|
||||
@@ -841,11 +841,7 @@ _vte_pty_getpt(GError **error)
|
||||
/* Call the system's function for allocating a pty. */
|
||||
fd = getpt();
|
||||
#else
|
||||
- /* Try to allocate a pty by accessing the pty master multiplex. */
|
||||
- fd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
|
||||
- if ((fd == -1) && (errno == ENOENT)) {
|
||||
- fd = open("/dev/ptc", O_RDWR | O_NOCTTY); /* AIX */
|
||||
- }
|
||||
+ fd = posix_openpt(O_RDWR | O_NOCTTY);
|
||||
#endif
|
||||
if (fd == -1) {
|
||||
g_set_error (error, VTE_PTY_ERROR,
|
Loading…
Reference in New Issue
Block a user