summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-04-16 11:50:41 +0000
committertv <tv@pkgsrc.org>2004-04-16 11:50:41 +0000
commitae49224a22b9929a82550c8301461236d5cba8f5 (patch)
treeb245cc324c03c1774fb9da3a3dd4c803d24ca807 /mail
parentf6b4e6d10908e6e9d894cef4519128751ebde941 (diff)
downloadpkgsrc-ae49224a22b9929a82550c8301461236d5cba8f5.tar.gz
Fix strerror_r compile problem. PKGREVISION untouched since it didn't even
compile on platforms afflicted by this (and Solaris, where it compiled fine, already used the code path to which it was changed).
Diffstat (limited to 'mail')
-rw-r--r--mail/clamav/distinfo3
-rw-r--r--mail/clamav/patches/patch-ae17
2 files changed, 19 insertions, 1 deletions
diff --git a/mail/clamav/distinfo b/mail/clamav/distinfo
index eedadacd6e3..b4214c8cf7a 100644
--- a/mail/clamav/distinfo
+++ b/mail/clamav/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2004/04/14 16:30:42 tv Exp $
+$NetBSD: distinfo,v 1.10 2004/04/16 11:50:41 tv Exp $
SHA1 (clamav-0.68-1.tar.gz) = d99dc0f88ad31df77441e5e4cfa1d6c66ac8f756
Size (clamav-0.68-1.tar.gz) = 2170863 bytes
@@ -6,3 +6,4 @@ SHA1 (patch-aa) = 6bd43ca5ed8e160ea5b1e69497c8cf71f4774bde
SHA1 (patch-ab) = 49f80b512704fec57c6b920d2625c083c756f957
SHA1 (patch-ac) = cab02632217fe4d75c0b48d0fd962d7822c3617d
SHA1 (patch-ad) = 6f2bfa05bb3421280272719c03260784a7826e91
+SHA1 (patch-ae) = 2761d90b6551c3b5006edeead097dc5d2846a337
diff --git a/mail/clamav/patches/patch-ae b/mail/clamav/patches/patch-ae
new file mode 100644
index 00000000000..e0cbe6cafb1
--- /dev/null
+++ b/mail/clamav/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.1 2004/04/16 11:50:41 tv Exp $
+
+--- clamav-milter/clamav-milter.c.orig Fri Apr 16 07:48:37 2004
++++ clamav-milter/clamav-milter.c
+@@ -1608,12 +1608,7 @@ clamfi_envfrom(SMFICTX *ctx, char **argv
+
+ /* 0.4 - use better error message */
+ if(use_syslog) {
+-#ifdef TARGET_OS_SOLARIS /* no strerror_r */
+ syslog(LOG_ERR, "Failed to connect to port %d given by clamd: %s", port, strerror(rc));
+-#else
+- strerror_r(rc, buf, sizeof(buf));
+- syslog(LOG_ERR, "Failed to connect to port %d given by clamd: %s", port, buf);
+-#endif
+ }
+
+ return cl_error;