summaryrefslogtreecommitdiffstats
path: root/devel/gnome-vfs/files/patch-modules_pty-open.c
blob: 2ee23b086f16d6a5d9a69c851721a3c68e7692ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- modules/pty-open.c.orig Sun Apr  4 12:58:08 2004
+++ modules/pty-open.c  Sun Apr  4 12:59:30 2004
@@ -613,6 +613,10 @@
    if ((fd == -1) && (errno == ENOENT)) {
        fd = open("/dev/ptc", O_RDWR | O_NOCTTY); /* AIX */
    }
+
+   if ((fd == -1) && (errno == ENOENT)) {
+       fd = posix_openpt(O_RDWR);
+   }
 #endif
    /* Set it to blocking. */
    flags = fcntl(fd, F_GETFL);