$NetBSD$

--- misc.c.orig	2009-08-05 16:31:28.470001000 +0200
+++ misc.c	2009-08-05 16:41:58.970006000 +0200
@@ -41,6 +41,9 @@
 #include <string.h>
 #include <sys/ioctl.h>
 #include <errno.h>
+#ifdef __sun
+#include <termios.h>
+#endif
 
 #include <pcap.h>
 
