From 110cde8b817ba18e01567347a702807d7fd97e22 Mon Sep 17 00:00:00 2001 From: stas Date: Sun, 9 Aug 2009 07:54:50 +0000 Subject: - Fix build on HEAD. Testing wanted! --- net/freevrrpd/Makefile | 8 +------- net/freevrrpd/files/patch-vrrp_network.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 net/freevrrpd/files/patch-vrrp_network.c (limited to 'net') diff --git a/net/freevrrpd/Makefile b/net/freevrrpd/Makefile index 91ee6793ce87..b7d51f3df2c3 100644 --- a/net/freevrrpd/Makefile +++ b/net/freevrrpd/Makefile @@ -27,10 +27,4 @@ do-install: @${INSTALL_SCRIPT} ${WRKSRC}/freevrrpd.sh.sample ${PREFIX}/etc/rc.d @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8 -.include - -.if ${OSVERSION} >= 800059 -BROKEN= does not build -.endif - -.include +.include diff --git a/net/freevrrpd/files/patch-vrrp_network.c b/net/freevrrpd/files/patch-vrrp_network.c new file mode 100644 index 000000000000..39f7a336f64a --- /dev/null +++ b/net/freevrrpd/files/patch-vrrp_network.c @@ -0,0 +1,23 @@ +--- vrrp_network.c.orig 2009-08-09 11:49:22.000000000 +0400 ++++ vrrp_network.c 2009-08-09 11:50:47.000000000 +0400 +@@ -36,6 +36,8 @@ + #include "vrrp_network.h" + #include "vrrp_ah.h" + ++#include ++ + u_short ip_id; + + /* Initialisation pour l'identification IP */ +@@ -310,7 +312,10 @@ + rtm.rtm_type = RTM_DELETE; + rtm.rtm_version = RTM_VERSION; + #ifdef __FreeBSD__ +- rtm.rtm_flags = RTF_UP | RTF_HOST | RTF_LOCAL | RTF_WASCLONED; ++ rtm.rtm_flags = RTF_UP | RTF_HOST | RTF_LOCAL; ++#if __FreeBSD_version < 800059 ++ rtm.rtm_flags |= RTF_WASCLONED; ++#endif + #endif + #ifdef __NetBSD__ + rtm.rtm_flags = RTF_UP | RTF_HOST | RTF_CLONED; -- cgit