aboutsummaryrefslogtreecommitdiffstats
path: root/mail/p5-Mail-ClamAV/files
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-03-02 18:47:32 +0800
committermat <mat@FreeBSD.org>2014-03-02 18:47:32 +0800
commitfee31f78963d1776be4ed65aeba4162493859045 (patch)
tree51cfab51a7e90de33829ad974e49e740f1bde23c /mail/p5-Mail-ClamAV/files
parenta393c2fa346f85051a6bc999fa1d37b93aec8bbf (diff)
downloadfreebsd-ports-gnome-fee31f78963d1776be4ed65aeba4162493859045.tar.gz
freebsd-ports-gnome-fee31f78963d1776be4ed65aeba4162493859045.tar.zst
freebsd-ports-gnome-fee31f78963d1776be4ed65aeba4162493859045.zip
- Fix build with Clang [1]
- Convert to staging Reported by: pkg-fallout, for months [1] Sponsored by: Absolight
Diffstat (limited to 'mail/p5-Mail-ClamAV/files')
-rw-r--r--mail/p5-Mail-ClamAV/files/patch-ClamAV.pm29
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm b/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm
new file mode 100644
index 000000000000..a4125b9c0f0a
--- /dev/null
+++ b/mail/p5-Mail-ClamAV/files/patch-ClamAV.pm
@@ -0,0 +1,29 @@
+--- ./ClamAV.pm.orig 2009-04-30 01:02:43.000000000 +0200
++++ ./ClamAV.pm 2014-03-02 11:45:39.000000000 +0100
+@@ -286,7 +286,7 @@
+ reclevel = cl_engine_get_num(c->root, CL_ENGINE_MAX_RECURSION, &err);
+ if (err != CL_SUCCESS) {
+ error(err);
+- return;
++ return 0;
+ }
+ return reclevel;
+ }
+@@ -313,7 +313,7 @@
+ maxfiles = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILES, &err);
+ if (err != CL_SUCCESS) {
+ error(err);
+- return;
++ return 0;
+ }
+ return maxfiles;
+ }
+@@ -334,7 +334,7 @@
+ maxfsize = cl_engine_get_num(c->root, CL_ENGINE_MAX_FILESIZE, &err);
+ if (err != CL_SUCCESS) {
+ error(err);
+- return;
++ return 0;
+ }
+ return maxfsize;
+ }