pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/clamav clamav: Fix build on SunOS C99.
details: https://anonhg.NetBSD.org/pkgsrc/rev/839df68e0621
branches: trunk
changeset: 386618:839df68e0621
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Oct 24 14:10:59 2018 +0000
description:
clamav: Fix build on SunOS C99.
diffstat:
security/clamav/Makefile | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 92742f9aa722 -r 839df68e0621 security/clamav/Makefile
--- a/security/clamav/Makefile Wed Oct 24 13:32:32 2018 +0000
+++ b/security/clamav/Makefile Wed Oct 24 14:10:59 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2018/08/16 18:55:09 adam Exp $
+# $NetBSD: Makefile,v 1.46 2018/10/24 14:10:59 jperkin Exp $
PKGREVISION= 2
.include "Makefile.common"
@@ -30,13 +30,16 @@
CHECK_PORTABILITY_SKIP= contrib/* unit_tests/* win32/*
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
NOT_PAX_MPROTECT_SAFE+= sbin/clamd
NOT_PAX_MPROTECT_SAFE+= bin/clamscan
NOT_PAX_MPROTECT_SAFE+= bin/freshclam
CFLAGS.SunOS+= -D__EXTENSIONS__
+.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
+CFLAGS.SunOS+= -D_XOPEN_SOURCE=600
+.endif
BUILD_DEFS+= CLAMAV_USER CLAMAV_GROUP CLAMAV_DBDIR
FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER}
Home |
Main Index |
Thread Index |
Old Index