$NetBSD: patch-ai,v 1.2 2009/03/15 16:47:29 jmcneill Exp $

--- gnome-pty-helper/gnome-pty-helper.c.orig	2008-11-27 19:13:04.000000000 -0500
+++ gnome-pty-helper/gnome-pty-helper.c
@@ -121,6 +121,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);
 
@@ -129,6 +130,7 @@ pass_fd (int client_fd, int fd)
 	cmptr->cmsg_type  = SCM_RIGHTS;
 	cmptr->cmsg_len   = CMSG_LEN(sizeof(int));
 	*(int *)CMSG_DATA (cmptr) = fd;
+#endif
 
 	if (sendmsg (client_fd, &msg, 0) != 1)
 		return -1;
