blob: 913b2da9f62ed276268b2c531755739e2594bad2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|