pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/electricfence Use strerror() on Interix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30866e339a69
branches:  trunk
changeset: 502668:30866e339a69
user:      tv <tv%pkgsrc.org@localhost>
date:      Tue Nov 08 03:27:32 2005 +0000

description:
Use strerror() on Interix.

diffstat:

 devel/electricfence/distinfo         |   4 ++--
 devel/electricfence/patches/patch-ab |  19 ++++++++++++++-----
 2 files changed, 16 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r acd48ad32175 -r 30866e339a69 devel/electricfence/distinfo
--- a/devel/electricfence/distinfo      Tue Nov 08 03:26:35 2005 +0000
+++ b/devel/electricfence/distinfo      Tue Nov 08 03:27:32 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2005/02/23 22:24:13 agc Exp $
+$NetBSD: distinfo,v 1.8 2005/11/08 03:27:32 tv Exp $
 
 SHA1 (ElectricFence-2.1.tar.gz) = 1794db6d446f31045ebf845543cf6759cbab1e4f
 RMD160 (ElectricFence-2.1.tar.gz) = 4513b43b2c9b4212822c2b2d749b6485909d8f67
 Size (ElectricFence-2.1.tar.gz) = 47917 bytes
 SHA1 (patch-aa) = 53c7c23d6d0a5b4f9814125bce8d6280f474fd56
-SHA1 (patch-ab) = d69757ff0d7b85b755303be9ed25d4334bbbaab7
+SHA1 (patch-ab) = 54c2dca3c58f430fd2ffe3a59ddfd6d89fc4bbda
 SHA1 (patch-ac) = 4c56eeea0b8e53cdf260b61aa8fdef16f601b186
diff -r acd48ad32175 -r 30866e339a69 devel/electricfence/patches/patch-ab
--- a/devel/electricfence/patches/patch-ab      Tue Nov 08 03:26:35 2005 +0000
+++ b/devel/electricfence/patches/patch-ab      Tue Nov 08 03:27:32 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.4 2004/06/08 19:51:36 jschauma Exp $
+$NetBSD: patch-ab,v 1.5 2005/11/08 03:27:32 tv Exp $
 
---- page.c.orig        Sat Apr 27 00:57:38 1996
+--- page.c.orig        1996-04-26 18:57:38.000000000 -0400
 +++ page.c
 @@ -3,6 +3,7 @@
  #include <unistd.h>
@@ -15,11 +15,20 @@
  static caddr_t        startAddr = (caddr_t) 0;
  
 -#if ( !defined(sgi) && !defined(_AIX) )
-+#if ( !defined(sgi) && !defined(_AIX) && !(defined(BSD) && BSD >= 199306)) && !defined(linux)
++#if ( !defined(sgi) && !defined(_AIX) && !(defined(BSD) && BSD >= 199306)) && !defined(linux) && !defined(__INTERIX)
  extern int    sys_nerr;
  extern char * sys_errlist[];
  #endif
-@@ -70,7 +71,7 @@
+@@ -39,7 +40,7 @@ stringErrorReport(void)
+ {
+ #if ( defined(sgi) )
+       return strerror(oserror());
+-#elif ( defined(_AIX) )
++#elif ( defined(_AIX) || defined(__INTERIX) )
+       return strerror(errno);
+ #else
+       if ( errno > 0 && errno < sys_nerr )
+@@ -70,7 +71,7 @@ Page_Create(size_t size)
         */
        allocation = (caddr_t) mmap(
         startAddr
@@ -28,7 +37,7 @@
        ,PROT_READ|PROT_WRITE
        ,MAP_PRIVATE|MAP_ANONYMOUS
        ,-1
-@@ -122,7 +123,7 @@
+@@ -122,7 +123,7 @@ Page_Create(size_t size)
         */
        allocation = (caddr_t) mmap(
         startAddr



Home | Main Index | Thread Index | Old Index