to match the source distfile name. (It had three different names, including, the distfile name.) This moves electricfence to electricfence and renames the package from ElectricFence to electric-fence.
28 lines
711 B
Text
28 lines
711 B
Text
$NetBSD: patch-ab,v 1.1.1.1 2010/02/14 00:06:16 reed Exp $
|
|
|
|
--- page.c.orig 2001-04-11 17:44:04.000000000 +0300
|
|
+++ page.c
|
|
@@ -29,7 +29,7 @@
|
|
|
|
static caddr_t startAddr = (caddr_t) 0;
|
|
|
|
-#if ( !defined(sgi) && !defined(_AIX) )
|
|
+#if ( !defined(sgi) && !defined(_AIX) && !(defined(BSD) && BSD >= 199306) && !defined(linux) && !defined(__INTERIX) )
|
|
extern int sys_nerr;
|
|
/*extern char * sys_errlist[];*/
|
|
#endif
|
|
@@ -39,13 +39,8 @@ stringErrorReport(void)
|
|
{
|
|
#if ( defined(sgi) )
|
|
return strerror(oserror());
|
|
-#elif ( defined(_AIX) )
|
|
- return strerror(errno);
|
|
#else
|
|
- if ( errno > 0 && errno < sys_nerr )
|
|
- return sys_errlist[errno];
|
|
- else
|
|
- return "Unknown error.\n";
|
|
+ return strerror(errno);
|
|
#endif
|
|
}
|
|
|