$NetBSD: patch-ac,v 1.2 2001/01/22 13:30:36 martin Exp $

--- pty.c.orig	Wed Dec 13 23:32:14 2000
+++ pty.c	Mon Jan 22 14:07:18 2001
@@ -38,6 +38,10 @@
 #include <util.h>
 #endif /* HAVE_UTIL_H */
 
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
 /* Pty allocated with _getpty gets broken if we do I_PUSH:es to it. */
 #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY)
 #undef HAVE_DEV_PTMX
