summaryrefslogtreecommitdiff
path: root/sysutils/collectd
diff options
context:
space:
mode:
authorfhajny <fhajny>2015-02-24 13:14:05 +0000
committerfhajny <fhajny>2015-02-24 13:14:05 +0000
commitab9b7b60f5677a887ec1710e8efcf39f7342cf12 (patch)
treef4237cd3be9c198018287c2020e2537776a542c9 /sysutils/collectd
parent0ee5977511417fc281a52b7dc490d86684fa7e6e (diff)
downloadpkgsrc-ab9b7b60f5677a887ec1710e8efcf39f7342cf12.tar.gz
SunOS still needs SOLARIS2 defined for ip_compat.h to expose some structs.
Diffstat (limited to 'sysutils/collectd')
-rw-r--r--sysutils/collectd/Makefile.common4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysutils/collectd/Makefile.common b/sysutils/collectd/Makefile.common
index 4e9cf4452c2..327ca5a9762 100644
--- a/sysutils/collectd/Makefile.common
+++ b/sysutils/collectd/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.4 2015/02/02 12:02:27 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.5 2015/02/24 13:14:05 fhajny Exp $
#
# used by sysutils/collectd/Makefile
# used by sysutils/collectd-amqp/Makefile
@@ -66,6 +66,8 @@ CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib
CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include
+CPPFLAGS.SunOS+= -DSOLARIS2=${OS_VERSION:C/5.//}
+
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -Wno-error=tautological-pointer-compare