summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ba
blob: 5c1279a43184f70f3d7ebab062bb2b5d4ffa47d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$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