Make this compile under Linux.

This commit is contained in:
jschauma 2004-06-08 19:51:36 +00:00
parent c0b56782d7
commit b542d33732
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.5 2004/02/04 13:33:36 grant Exp $
$NetBSD: distinfo,v 1.6 2004/06/08 19:51:36 jschauma Exp $
SHA1 (ElectricFence-2.1.tar.gz) = 1794db6d446f31045ebf845543cf6759cbab1e4f
Size (ElectricFence-2.1.tar.gz) = 47917 bytes
SHA1 (patch-aa) = 53c7c23d6d0a5b4f9814125bce8d6280f474fd56
SHA1 (patch-ab) = 85d3ae4197e520c6718367d60836c1378e71f33c
SHA1 (patch-ab) = d69757ff0d7b85b755303be9ed25d4334bbbaab7
SHA1 (patch-ac) = 4c56eeea0b8e53cdf260b61aa8fdef16f601b186

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ab,v 1.3 2001/11/09 00:39:39 hubertf Exp $
$NetBSD: patch-ab,v 1.4 2004/06/08 19:51:36 jschauma Exp $
--- page.c.orig Sat Apr 27 00:57:38 1996
+++ page.c
@ -15,7 +15,7 @@ $NetBSD: patch-ab,v 1.3 2001/11/09 00:39:39 hubertf Exp $
static caddr_t startAddr = (caddr_t) 0;
-#if ( !defined(sgi) && !defined(_AIX) )
+#if ( !defined(sgi) && !defined(_AIX) && !(defined(BSD) && BSD >= 199306))
+#if ( !defined(sgi) && !defined(_AIX) && !(defined(BSD) && BSD >= 199306)) && !defined(linux)
extern int sys_nerr;
extern char * sys_errlist[];
#endif