$NetBSD$

--- gxconsole.c.orig	2008-11-28 15:02:37.000000000 +0000
+++ gxconsole.c	2009-03-14 13:29:40.000000000 +0000
@@ -25,11 +25,21 @@
 #include "config.h"
 #endif
 #if HAVE_OPENPTY
+#ifdef __NetBSD__
+#include <util.h>
+#else
 #include <pty.h>
 #endif
+
+#endif
 #define FILE_XCON "/dev/xconsole"
 #define ICON_IN_UPDATED "emblem-important"
 #define ICON_IN_PAUSE "emblem-generic"
+
+#ifdef __NetBSD__
+#include <sys/ttycom.h>
+#endif
+
 typedef struct {
   GdkPixbuf *pix_updated,*pix_pause;
   GtkStatusIcon *icon;
