summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2017-05-25 13:28:27 (GMT)
committerespie <espie@openbsd.org>2017-05-25 13:28:27 (GMT)
commit25edae64543959d2e5b2c82bee3d76f78d8a223e (patch)
tree3f1f5c35497dd95c932d70208e653b7205b1d97a
parent4b9042d2351dea316ca74994f47f1081eccba756 (diff)
downloadopenbsd-ports-25edae64543959d2e5b2c82bee3d76f78d8a223e.tar.gz
openbsd-ports-25edae64543959d2e5b2c82bee3d76f78d8a223e.tar.xz
clean non portable construct from include. stops clang warnings
-rw-r--r--security/clamav/Makefile4
-rw-r--r--security/clamav/patches/patch-libclamav_clamav_h14
2 files changed, 16 insertions, 2 deletions
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index 3905ce8..7437b91 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.112 2016/11/04 11:35:20 sthen Exp $
+# $OpenBSD: Makefile,v 1.113 2017/05/25 13:28:27 espie Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.99.2
-REVISION= 3
+REVISION= 4
CATEGORIES= security
diff --git a/security/clamav/patches/patch-libclamav_clamav_h b/security/clamav/patches/patch-libclamav_clamav_h
new file mode 100644
index 0000000..e0dd24f
--- /dev/null
+++ b/security/clamav/patches/patch-libclamav_clamav_h
@@ -0,0 +1,14 @@
+$OpenBSD: patch-libclamav_clamav_h,v 1.1 2017/05/25 13:28:27 espie Exp $
+
+Index: libclamav/clamav.h
+--- libclamav/clamav.h.orig
++++ libclamav/clamav.h
+@@ -34,7 +34,7 @@
+ /* Certain OSs already use 64bit variables in their stat struct */
+ #define STAT64_BLACKLIST !defined(__FreeBSD__) && !defined(__APPLE__)
+
+-#if defined(HAVE_STAT64) && STAT64_BLACKLIST
++#if defined(HAVE_STAT64) && !defined(__FreeBSD__) && !defined(__APPLE__)
+
+ #include <unistd.h>
+