summaryrefslogtreecommitdiff
path: root/editors/mined/patches/patch-aa
blob: cb9d961a1f68efc2e9c0cd42c7a06dd804f7a9c6 (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
$NetBSD: patch-aa,v 1.3 2003/07/01 15:52:37 agc Exp $

--- minedaux.c	2003/06/17 16:07:30	1.1
+++ minedaux.c	2003/06/17 16:10:10
@@ -507,6 +507,13 @@
 #    include <errno.h>
 #  endif
 
+#  include <sys/types.h>
+#  include <sys/param.h>
+
+#  if (defined(BSD) && BSD >= 199306)
+#    include <errno.h>
+#  else
+
   extern int errno;
   extern int sys_nerr;
 
@@ -518,13 +525,13 @@
    portability problems and wastes developers' time. 
    It's nothing but a nuisance. */
   extern char * sys_errlist [];
+#     endif
 #   endif
 #  endif
 
 # endif	/* #else __CYGWIN__ */
 #endif
 
-
 char *
 serrorof (errnum)
   int errnum;