summaryrefslogtreecommitdiff
path: root/editors/beav/patches/patch-ab
blob: 4cb1913032168f3801c1365bf54c77086fd008e9 (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
$NetBSD: patch-ab,v 1.2 2005/12/09 13:56:51 joerg Exp $

--- termio.c.orig	1995-08-20 18:05:21.000000000 +0000
+++ termio.c
@@ -12,6 +12,9 @@
 #include    <signal.h>
 #ifdef BSD
 #include    <sys/ioctl.h>
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#include <sys/ioctl_compat.h>
+#endif
 #else
 #ifdef OS2
 #ifndef __EMX__
@@ -58,10 +61,6 @@ struct termio ntermio;		/* charactoristi
 #endif /* OS2 */
 #endif /* BSD */
 
-#ifndef OS2
-extern errno;			/* System error number -- Necessary when compiling in BSD 1.13 */
-#endif
-
 int nrow;			/* Terminal size, rows.         */
 int ncol;			/* Terminal size, columns.      */