pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/clamav



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Oct 24 14:10:59 UTC 2018

Modified Files:
        pkgsrc/security/clamav: Makefile

Log Message:
clamav: Fix build on SunOS C99.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/security/clamav/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/clamav/Makefile
diff -u pkgsrc/security/clamav/Makefile:1.45 pkgsrc/security/clamav/Makefile:1.46
--- pkgsrc/security/clamav/Makefile:1.45        Thu Aug 16 18:55:09 2018
+++ pkgsrc/security/clamav/Makefile     Wed Oct 24 14:10:59 2018
@@ -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 @@ CONFIGURE_ARGS+=    --disable-zlib-vcheck
 
 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