$NetBSD: patch-ad,v 1.6 2005/11/17 13:17:56 dmcmahill Exp $

--- src/frontend/terminal.c.orig	2001-04-22 10:08:46.000000000 +0000
+++ src/frontend/terminal.c
@@ -27,6 +27,8 @@ Author: 1986 Wayne A. Christopher, U. C.
 #include <termcap.h>
 #endif
 
+#include <sys/ioctl.h>
+
 #include <ngspice.h>
 #include <cpdefs.h>
 
