Commit d1252cd3 authored by Kjartan Maraas's avatar Kjartan Maraas Committed by Kjartan Maraas

Make VTE work on NetBSD, OpenBSD (sparc and macppc). Reported by Adrian

2005-08-13  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-pty-helper/gnome-pty-helper.c: (init_msg_pass):
	Make VTE work on NetBSD, OpenBSD (sparc and macppc).
	Reported by Adrian Bunk, patches by Dan Winship and
	Rich Edelman. Closes bug #126554.
parent 35517238
2005-08-13 Kjartan Maraas <kmaraas@gnome.org>
* gnome-pty-helper/gnome-pty-helper.c: (init_msg_pass):
Make VTE work on NetBSD, OpenBSD (sparc and macppc).
Reported by Adrian Bunk, patches by Dan Winship and
Rich Edelman. Closes bug #126554.
2005-08-12 Kjartan Maraas <kmaraas@gnome.org>
* src/vtetc.c: (_vte_termcap_destroy): Don't crash
......
......@@ -42,6 +42,7 @@ extern char *strdup(const char *);
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <sys/param.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
......@@ -93,13 +94,13 @@ static pty_info *pty_list;
#endif
#endif /* CMSG_DATA */
#define CONTROLLEN (sizeof (struct cmsghdr) + sizeof (int))
static struct cmsghdr *cmptr;
static int CONTROLLEN;
static int
init_msg_pass ()
{
CONTROLLEN = (CMSG_DATA (cmptr) - (unsigned char *)cmptr) + sizeof(int);
cmptr = malloc (CONTROLLEN);
if (cmptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment