aboutsummaryrefslogtreecommitdiffstats
path: root/security/clamav
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-06-29 02:19:28 +0800
committerjylefort <jylefort@FreeBSD.org>2005-06-29 02:19:28 +0800
commit9bad700cfe4430064cd82d763260e54313964dbc (patch)
tree77ef32af4e149593ed8c5e3eb92a19ad4ed18585 /security/clamav
parentbdeac5c6d58156ab2c4e4f1634043141df5b5509 (diff)
downloadfreebsd-ports-graphics-9bad700cfe4430064cd82d763260e54313964dbc.tar.gz
freebsd-ports-graphics-9bad700cfe4430064cd82d763260e54313964dbc.tar.zst
freebsd-ports-graphics-9bad700cfe4430064cd82d763260e54313964dbc.zip
Fix compilation of the milter interface.
Reported by: Tony Shadwick <tshadwick@goinet.com>
Diffstat (limited to 'security/clamav')
-rw-r--r--security/clamav/files/patch-clamav-milter_clamav-milter.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/security/clamav/files/patch-clamav-milter_clamav-milter.c b/security/clamav/files/patch-clamav-milter_clamav-milter.c
new file mode 100644
index 00000000000..c49c0e54ece
--- /dev/null
+++ b/security/clamav/files/patch-clamav-milter_clamav-milter.c
@@ -0,0 +1,28 @@
+--- clamav-milter/clamav-milter.c.orig Tue Jun 28 00:20:39 2005
++++ clamav-milter/clamav-milter.c Tue Jun 28 00:22:33 2005
+@@ -1054,9 +1054,11 @@
+
+ if(cfgopt(copt, "LogVerbose")) {
+ logVerbose = 1;
++#if defined(SENDMAIL_VERSION_A) && defined(SENDMAIL_VERSION_B)
+ #if ((SENDMAIL_VERSION_A > 8) || ((SENDMAIL_VERSION_A == 8) && (SENDMAIL_VERSION_B >= 13)))
+ smfi_setdbg(6);
+ #endif
++#endif
+ }
+ use_syslog = 1;
+
+@@ -1573,11 +1575,13 @@
+ return EX_UNAVAILABLE;
+ }
+
++#if defined(SENDMAIL_VERSION_A) && defined(SENDMAIL_VERSION_B)
+ #if ((SENDMAIL_VERSION_A > 8) || ((SENDMAIL_VERSION_A == 8) && (SENDMAIL_VERSION_B >= 13)))
+ if(smfi_opensocket(1) == MI_FAILURE) {
+ cli_errmsg("Can't open/create %s\n", port);
+ return EX_CONFIG;
+ }
++#endif
+ #endif
+
+ signal(SIGPIPE, SIG_IGN); /* libmilter probably does this as well */