aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2009-08-09 15:54:50 +0800
committerstas <stas@FreeBSD.org>2009-08-09 15:54:50 +0800
commit110cde8b817ba18e01567347a702807d7fd97e22 (patch)
tree2def0011c9465b638a41f33d027ef00a74c99199 /net
parent38bdacbed190d7228f8a9eaae66ea179860cc688 (diff)
downloadfreebsd-ports-gnome-110cde8b817ba18e01567347a702807d7fd97e22.tar.gz
freebsd-ports-gnome-110cde8b817ba18e01567347a702807d7fd97e22.tar.zst
freebsd-ports-gnome-110cde8b817ba18e01567347a702807d7fd97e22.zip
- Fix build on HEAD. Testing wanted!
Diffstat (limited to 'net')
-rw-r--r--net/freevrrpd/Makefile8
-rw-r--r--net/freevrrpd/files/patch-vrrp_network.c23
2 files changed, 24 insertions, 7 deletions
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 <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 800059
-BROKEN= does not build
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
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 <sys/param.h>
++
+ 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;