diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-07-20 20:51:42 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-07-20 20:51:42 +0800 |
commit | 2b5cc835f116f6ca34c0f7f2d34ec5049a35b3a7 (patch) | |
tree | edccfff24d79ae69b6fd7fd281e35f0613fc6424 /x11-toolkits/vte3 | |
parent | 2fe4d6cf44f247ec5ede43a597697c0f53f1e343 (diff) | |
download | marcuscom-ports-2b5cc835f116f6ca34c0f7f2d34ec5049a35b3a7.tar.gz marcuscom-ports-2b5cc835f116f6ca34c0f7f2d34ec5049a35b3a7.tar.zst marcuscom-ports-2b5cc835f116f6ca34c0f7f2d34ec5049a35b3a7.zip |
On recent current the pty device was removed from the default kernel.
So the old fallback code doesn't work anymore. Since we don't have getpt(),
so use posix_openpt().
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16994 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/vte3')
-rw-r--r-- | x11-toolkits/vte3/files/patch-src_pty.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11-toolkits/vte3/files/patch-src_pty.c b/x11-toolkits/vte3/files/patch-src_pty.c new file mode 100644 index 000000000..2129ef3f4 --- /dev/null +++ b/x11-toolkits/vte3/files/patch-src_pty.c @@ -0,0 +1,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 |