From f1e52b5791f70c6be81fb1ffdb57d74a31ebed43 Mon Sep 17 00:00:00 2001 From: obache Date: Fri, 21 Dec 2007 13:30:12 +0000 Subject: Fix build problems with gcc4. * invalid lvalue cast * static v.s. extern --- net/mrt/distinfo | 4 +++- net/mrt/patches/patch-ag | 13 +++++++++++++ net/mrt/patches/patch-ah | 13 +++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 net/mrt/patches/patch-ag create mode 100644 net/mrt/patches/patch-ah (limited to 'net') diff --git a/net/mrt/distinfo b/net/mrt/distinfo index e857148c170..499d8c9625c 100644 --- a/net/mrt/distinfo +++ b/net/mrt/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2006/03/22 23:55:37 joerg Exp $ +$NetBSD: distinfo,v 1.6 2007/12/21 13:30:12 obache Exp $ SHA1 (mrt-2.2.2a-Aug11.tar.gz) = 6290a0b8d5539fddbd562d8dec64deb291dd3369 RMD160 (mrt-2.2.2a-Aug11.tar.gz) = e62d3b06d802757cbb1aa4225713b8bf7523ba77 @@ -9,3 +9,5 @@ SHA1 (patch-ac) = 2fc1c1f19848c90f7344813090fc7c96de121702 SHA1 (patch-ad) = bbc017a99d34ee3bd6eecad077102b10c7e83349 SHA1 (patch-ae) = 1689741472239677511a8e06357fc37f34eae4d4 SHA1 (patch-af) = 83678e7e5b1016cfd29b0b8efcc362b3500daf3f +SHA1 (patch-ag) = 1719581ab090e77b51642f999f96b54fa8434a10 +SHA1 (patch-ah) = 38e50462c50c89ea12330cbe91ddf7f66f59dada diff --git a/net/mrt/patches/patch-ag b/net/mrt/patches/patch-ag new file mode 100644 index 00000000000..d798b068761 --- /dev/null +++ b/net/mrt/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1 2007/12/21 13:30:13 obache Exp $ + +--- lib/config/commconf.c.orig 2000-05-23 07:53:10.000000000 +0000 ++++ lib/config/commconf.c +@@ -365,7 +365,7 @@ config_interface (uii_connection_t * uii + uii->state = UII_CONFIG_INTERFACE; + Delete (name); + +- LL_Iterate (CONFIG_MRTD->ll_interfaces, (char *) ip) { ++ LL_Iterate (CONFIG_MRTD->ll_interfaces, ip) { + if (ip == interface) + return (0); + } diff --git a/net/mrt/patches/patch-ah b/net/mrt/patches/patch-ah new file mode 100644 index 00000000000..921a6b0b6f3 --- /dev/null +++ b/net/mrt/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 2007/12/21 13:30:13 obache Exp $ + +--- lib/rib/rib.c.orig 2000-05-23 08:01:00.000000000 +0000 ++++ lib/rib/rib.c +@@ -14,8 +14,6 @@ int num_active_generic_attr = 0; + int num_active_route_head = 0; + int num_active_route_node = 0; + +-static rib_t *RIBS[AFI_MAX][SAFI_MAX]; +- + static void rib_flush_route (int proto, int afi, int safi); + static nexthop_t *rib_find_best_route (prefix_t *prefix, int safi); + -- cgit v1.2.3