mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Fix a run time issue on -CURRENT more recent than 4 months ago, when the pty(4)
device was removed from the default kernel.
This commit is contained in:
parent
71518bdb06
commit
3ff550d6ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=301694
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= vte
|
||||
PORTVERSION= 0.26.2
|
||||
PORTREVISION?= 2
|
||||
PORTREVISION?= 3
|
||||
CATEGORIES= x11-toolkits gnome
|
||||
MASTER_SITES= GNOME
|
||||
DIST_SUBDIR= gnome2
|
||||
|
15
x11-toolkits/vte/files/patch-src_pty.c
Normal file
15
x11-toolkits/vte/files/patch-src_pty.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/pty.c.orig 2012-07-20 13:47:16.000000000 +0200
|
||||
+++ src/pty.c 2012-07-20 14:07:30.000000000 +0200
|
||||
@@ -837,7 +837,11 @@
|
||||
_vte_pty_getpt(GError **error)
|
||||
{
|
||||
int fd, flags, rv;
|
||||
-#ifdef HAVE_GETPT
|
||||
+
|
||||
+#ifdef HAVE_POSIX_OPENPT
|
||||
+ /* Call the system's function for allocating a pty. */
|
||||
+ fd = posix_openpt(O_RDWR | O_NOCTTY);
|
||||
+#elif defined(HAVE_GETPT)
|
||||
/* Call the system's function for allocating a pty. */
|
||||
fd = getpt();
|
||||
#else
|
Loading…
Reference in New Issue
Block a user