Add files from parent branch HEAD:
[pkgsrc.git] / news / nn / patches / patch-ba
1 $NetBSD$
2
3 --- term.c.orig 2005-06-29 23:40:27.000000000 +0200
4 +++ term.c      2006-10-15 15:22:58.000000000 +0200
5 @@ -25,7 +25,7 @@
6  #include "regexp.h"
7  #include "nn_term.h"
8  
9 -#if !defined(__FreeBSD__) && !(__NetBSD__) && !defined(NeXT)
10 +#if !defined(__FreeBSD__) && !(__NetBSD__) && !defined(NeXT) && !defined(__APPLE__) && !defined(__DragonFly__)
11  #include <stropts.h>
12  #else
13  #include <sys/ioctl.h>
14 @@ -60,7 +60,7 @@
15  #else
16  #define USE_TERMCAP
17  
18 -#if !defined(SUNOS4) && !defined(NeXT)
19 +#if !defined(SUNOS4) && !defined(NeXT) && !defined(__sgi)
20  #include <termcap.h>
21  #endif                         /* SUNOS4 */
22  
23 @@ -74,9 +74,9 @@
24  
25  #else
26  
27 -#ifndef __FreeBSD__
28 +#ifndef HAVE_TERMIOS_H
29  #include <sgtty.h>
30 -#endif                         /* __FreeBSD__ */
31 +#endif                         /* HAVE_TERMIOS_H */
32  
33  #endif
34  
35 @@ -456,6 +456,12 @@
36  #endif                         /* FAKE_INTERRUPT */
37  
38  static unsigned sp_table[] = {
39 +#ifdef B115200
40 +    B115200, 11520,
41 +#endif
42 +#ifdef B57600
43 +    B57600, 5760,
44 +#endif
45      B9600, 960,
46  
47  #ifdef B19200