diff options
author | tv <tv> | 2004-04-16 11:50:41 +0000 |
---|---|---|
committer | tv <tv> | 2004-04-16 11:50:41 +0000 |
commit | 4e4f6430ec47fcf50728a1c2fe338100563fc9cc (patch) | |
tree | b245cc324c03c1774fb9da3a3dd4c803d24ca807 /mail/clamav/patches | |
parent | ffe7241c6e2eb4f0d474ec2db450dc2c473105ea (diff) | |
download | pkgsrc-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-ae | 17 |
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; |