From 9b981642efec8dd070fac55addf08bf8057f0abe Mon Sep 17 00:00:00 2001 From: bouyer Date: Fri, 20 Apr 2007 18:55:00 +0000 Subject: gcc4 can't read an include file backward :) Move variables declaration after struct definitions, so that gcc knows the size of the variables. Fix build on netbsd-4. --- net/pim6sd/distinfo | 3 ++- net/pim6sd/patches/patch-ag | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 net/pim6sd/patches/patch-ag (limited to 'net/pim6sd') diff --git a/net/pim6sd/distinfo b/net/pim6sd/distinfo index 6578085844e..47a501d3d56 100644 --- a/net/pim6sd/distinfo +++ b/net/pim6sd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2006/03/14 02:40:15 joerg Exp $ +$NetBSD: distinfo,v 1.10 2007/04/20 18:55:00 bouyer Exp $ SHA1 (pim6sd-20031021a.tar.gz) = 96334a3e765bebc3ad4789b47543eb0ddccf9c6e RMD160 (pim6sd-20031021a.tar.gz) = e285ec24eae1bf09460d20e7fff6089ed7515f3a @@ -9,3 +9,4 @@ SHA1 (patch-ac) = 4fa63aef0c7bf083774973a091fcc88324503c37 SHA1 (patch-ad) = 8f5082c64fe20d8df41fb69fed366eb0cfcc0c01 SHA1 (patch-ae) = bfa5245dd7c2c29d88e420559afbd13c5f9fe9a7 SHA1 (patch-af) = 3936ade5af8b5e25cefd85810ac50b3663d0323a +SHA1 (patch-ag) = 902312b492c53257f4e29cab90094b8734f06b97 diff --git a/net/pim6sd/patches/patch-ag b/net/pim6sd/patches/patch-ag new file mode 100644 index 00000000000..33206e9af54 --- /dev/null +++ b/net/pim6sd/patches/patch-ag @@ -0,0 +1,36 @@ +$NetBSD: patch-ag,v 1.1 2007/04/20 18:55:00 bouyer Exp $ + +--- vif.h.orig 2003-01-22 07:47:02.000000000 +0100 ++++ vif.h 2007-04-20 17:50:02.000000000 +0200 +@@ -58,15 +58,6 @@ + #ifndef VIF_H + #define VIF_H + +-extern int total_interfaces; +-extern int default_vif_status; +-extern int udp_socket; +-extern struct uvif uvifs[]; +-extern mifi_t numvifs; +-extern int vifs_down; +-extern int phys_vif; +-extern mifi_t reg_vif_num; +- + #define NO_VIF ((mifi_t)MAXMIFS) /* An invalid vif index */ + #define DEFAULT_METRIC 1 + #define VIFF_DOWN 0x000100 +@@ -270,7 +261,14 @@ + }; + + +- ++extern int total_interfaces; ++extern int default_vif_status; ++extern int udp_socket; ++extern struct uvif uvifs[]; ++extern mifi_t numvifs; ++extern int vifs_down; ++extern int phys_vif; ++extern mifi_t reg_vif_num; + + extern void init_vifs __P((void)); + extern void stop_all_vifs __P((void)); -- cgit v1.2.3