summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/vte3/files/patch-src_pty.c
blob: 2129ef3f4cc532c4045f3665a61c320089a403df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/pty.c.orig  2012-05-23 22:43:04.000000000 +0200
+++ src/pty.c   2012-07-20 14:36:58.337340000 +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 HAVE_GETPT
    /* Call the system's function for allocating a pty. */
    fd = getpt();
 #else