diff options
Diffstat (limited to 'devel/electric-fence/patches/patch-ab')
-rw-r--r-- | devel/electric-fence/patches/patch-ab | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/electric-fence/patches/patch-ab b/devel/electric-fence/patches/patch-ab new file mode 100644 index 00000000000..5c9cfc36eed --- /dev/null +++ b/devel/electric-fence/patches/patch-ab @@ -0,0 +1,28 @@ +$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 + } + |