summaryrefslogtreecommitdiff
path: root/mail/clamav/patches
diff options
context:
space:
mode:
authortv <tv>2004-04-16 11:50:41 +0000
committertv <tv>2004-04-16 11:50:41 +0000
commit4e4f6430ec47fcf50728a1c2fe338100563fc9cc (patch)
treeb245cc324c03c1774fb9da3a3dd4c803d24ca807 /mail/clamav/patches
parentffe7241c6e2eb4f0d474ec2db450dc2c473105ea (diff)
downloadpkgsrc-4e4f6430ec47fcf50728a1c2fe338100563fc9cc.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/clamav/patches')
-rw-r--r--mail/clamav/patches/patch-ae17
1 files changed, 17 insertions, 0 deletions
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;