$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;
