pkgsrc/x11/vte029/patches/patch-ai
ryoon 441b8f54df Import vte029-0.32.2 as x11/vte029.
Terminal widget with improved font, internationalization and
accessibility support for the GNOME 3 desktop.
2012-08-10 13:46:01 +00:00

20 lines
671 B
Text

$NetBSD: patch-ai,v 1.1 2012/08/10 13:46:01 ryoon Exp $
--- gnome-pty-helper/gnome-pty-helper.c.orig 2010-07-15 17:08:44.000000000 +0000
+++ gnome-pty-helper/gnome-pty-helper.c
@@ -122,6 +122,7 @@ pass_fd (int client_fd, int fd)
msg.msg_iovlen = 1;
msg.msg_name = NULL;
msg.msg_namelen = 0;
+#if defined(CMSG_FIRSTHDR)
msg.msg_control = (caddr_t) cmsgbuf;
msg.msg_controllen = sizeof(cmsgbuf);
@@ -131,6 +132,7 @@ pass_fd (int client_fd, int fd)
cmptr->cmsg_len = CMSG_LEN(sizeof(int));
fdptr = (int *) CMSG_DATA(cmptr);
memcpy (fdptr, &fd, sizeof(int));
+#endif
if (sendmsg (client_fd, &msg, 0) != 1)
return -1;