summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-11-08 13:47:40 +0000
committertv <tv@pkgsrc.org>2005-11-08 13:47:40 +0000
commitcabe7802c6a4da9f1e8515793214f054cd6a5468 (patch)
tree8a03a3d627278db0034cc0fc9ea4fdf1db9f3504 /net
parentc305d2fcb9dd375ab4bc02297a06c6d5b97019d4 (diff)
downloadpkgsrc-cabe7802c6a4da9f1e8515793214f054cd6a5468.tar.gz
Use strerror(3) rather than sys_errlist on Interix.
Diffstat (limited to 'net')
-rw-r--r--net/icsi-finger/distinfo4
-rw-r--r--net/icsi-finger/patches/patch-aa26
2 files changed, 24 insertions, 6 deletions
diff --git a/net/icsi-finger/distinfo b/net/icsi-finger/distinfo
index f55b0ee146b..a823d10df75 100644
--- a/net/icsi-finger/distinfo
+++ b/net/icsi-finger/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2005/02/24 12:13:50 agc Exp $
+$NetBSD: distinfo,v 1.5 2005/11/08 13:47:40 tv Exp $
SHA1 (icsi-finger-1.0.27.tar.Z) = 41f03c42269a402169000a6b08ba8c6330256861
RMD160 (icsi-finger-1.0.27.tar.Z) = 92839362b6d4b1893958ca0909654f070e734aa4
Size (icsi-finger-1.0.27.tar.Z) = 729351 bytes
-SHA1 (patch-aa) = 09aff5e24c2cf5ede8d8b70e805c88824e0ba88c
+SHA1 (patch-aa) = dc800d0011090a273ad348bb8c8daa38b2acc5a6
SHA1 (patch-ab) = d8a719d78288aad8ab3a7159f332afdd59231ebb
SHA1 (patch-ac) = dd1603bef5c0c6764549a0fdcddfd819d4301809
diff --git a/net/icsi-finger/patches/patch-aa b/net/icsi-finger/patches/patch-aa
index 2120a5a0eea..0a66df3047e 100644
--- a/net/icsi-finger/patches/patch-aa
+++ b/net/icsi-finger/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 11:10:42 agc Exp $
+$NetBSD: patch-aa,v 1.3 2005/11/08 13:47:40 tv Exp $
---- lib/error.c.old Sun Apr 5 00:38:04 1998
-+++ lib/error.c Fri Jun 26 14:16:52 1998
-@@ -143,7 +143,7 @@
+--- lib/error.c.orig 1998-04-04 17:38:04.000000000 -0500
++++ lib/error.c
+@@ -143,13 +143,16 @@ file_error (severity, filename)
int severity;
char *filename;
{
@@ -11,3 +11,21 @@ $NetBSD: patch-aa,v 1.2 1998/08/07 11:10:42 agc Exp $
extern int sys_nerr;
extern char *sys_errlist[];
#endif
+
+- char *error_text;
++ const char *error_text;
+
++#ifdef __INTERIX
++ error_text = strerror(errno);
++#else
+ if (errno) {
+ if (errno < sys_nerr)
+ error_text = sys_errlist[errno];
+@@ -158,6 +161,7 @@ file_error (severity, filename)
+ } else {
+ error_text = "(Hmm, no error?)";
+ }
++#endif
+
+ if (filename == (char *)NULL)
+ handle_error (severity, "%s", error_text, NULL, NULL);