summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/zabbix/Makefile5
-rw-r--r--net-mgmt/zabbix2/Makefile5
2 files changed, 10 insertions, 0 deletions
diff --git a/net-mgmt/zabbix/Makefile b/net-mgmt/zabbix/Makefile
index 85a6be806e0b..aed64fbd6b47 100644
--- a/net-mgmt/zabbix/Makefile
+++ b/net-mgmt/zabbix/Makefile
@@ -86,6 +86,11 @@ post-patch:
.endif
.endif # ZABBIX_AGENT_ONLY
+.if ${ARCH} == "amd64"
+post-configure:
+ ${ECHO_CMD} "#define HAVE_VA_COPY 1" >> ${WRKSRC}/include/config.h
+.endif
+
do-install:
.for FILE in ${ZABBIX_BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${FILE} ${PREFIX}/bin
diff --git a/net-mgmt/zabbix2/Makefile b/net-mgmt/zabbix2/Makefile
index 85a6be806e0b..aed64fbd6b47 100644
--- a/net-mgmt/zabbix2/Makefile
+++ b/net-mgmt/zabbix2/Makefile
@@ -86,6 +86,11 @@ post-patch:
.endif
.endif # ZABBIX_AGENT_ONLY
+.if ${ARCH} == "amd64"
+post-configure:
+ ${ECHO_CMD} "#define HAVE_VA_COPY 1" >> ${WRKSRC}/include/config.h
+.endif
+
do-install:
.for FILE in ${ZABBIX_BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${FILE} ${PREFIX}/bin