3ff550d6ee
device was removed from the default kernel.
15 lines
433 B
C
15 lines
433 B
C
--- 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
|