$NetBSD: patch-ba,v 1.5 2006/10/15 16:43:37 schwarz Exp $

--- term.c.orig	2005-06-29 23:40:27.000000000 +0200
+++ term.c	2006-10-15 15:22:58.000000000 +0200
@@ -25,7 +25,7 @@
 #include "regexp.h"
 #include "nn_term.h"
 
-#if !defined(__FreeBSD__) && !(__NetBSD__) && !defined(NeXT)
+#if !defined(__FreeBSD__) && !(__NetBSD__) && !defined(NeXT) && !defined(__APPLE__) && !defined(__DragonFly__)
 #include <stropts.h>
 #else
 #include <sys/ioctl.h>
@@ -60,7 +60,7 @@
 #else
 #define USE_TERMCAP
 
-#if !defined(SUNOS4) && !defined(NeXT)
+#if !defined(SUNOS4) && !defined(NeXT) && !defined(__sgi)
 #include <termcap.h>
 #endif				/* SUNOS4 */
 
@@ -74,9 +74,9 @@
 
 #else
 
-#ifndef __FreeBSD__
+#ifndef HAVE_TERMIOS_H
 #include <sgtty.h>
-#endif				/* __FreeBSD__ */
+#endif				/* HAVE_TERMIOS_H */
 
 #endif
 
@@ -456,6 +456,12 @@
 #endif				/* FAKE_INTERRUPT */
 
 static unsigned sp_table[] = {
+#ifdef B115200
+    B115200, 11520,
+#endif
+#ifdef B57600
+    B57600, 5760,
+#endif
     B9600, 960,
 
 #ifdef B19200
