pkgsrc/x11/vte029/patches/patch-aa
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

31 lines
846 B
Text

$NetBSD: patch-aa,v 1.1 2012/08/10 13:46:01 ryoon Exp $
Let's assume that if the macro CMSG_FIRSTHDR is not defined, that struct
msghdr does not have the msg_control member, too. Needed for Solaris.
--- src/pty.c.orig 2007-02-26 22:05:14.000000000 +0100
+++ src/pty.c
@@ -659,12 +659,15 @@ _vte_pty_read_ptypair(int tunnel, int *p
msg.msg_namelen = 0;
msg.msg_iov = &vec;
msg.msg_iovlen = 1;
+#if defined(CMSG_FIRSTHDR)
msg.msg_control = control;
msg.msg_controllen = sizeof(control);
+#endif
ret = recvmsg(tunnel, &msg, PTY_RECVMSG_FLAGS);
if (ret == -1) {
return;
}
+#if defined(CMSG_FIRSTHDR)
for (cmsg = CMSG_FIRSTHDR(&msg);
cmsg != NULL;
cmsg = CMSG_NXTHDR(&msg, cmsg)) {
@@ -683,6 +686,7 @@ _vte_pty_read_ptypair(int tunnel, int *p
}
}
}
+#endif
}
}
#elif defined (I_RECVFD)