Subject: Struct ifnet with G++
To: None <tech-userlevel@NetBSD.ORG>
From: Peter Howlett <Peter.Howlett@ASG.unb.ca>
List: tech-userlevel
Date: 03/27/1996 22:21:03
Hope I have the right list for this...
Anyone ever try compiling a G++ program including <net/if.h> ?
It has the ifnet struct with struct if_data declared inside it
struct ifnet {
...
struct if_data {
...
} if_data;
}
Of course if_data is declared in the scope of ifnet, so when
if_data is referenced again in the file below, g++ kicks
and screams.
I know there are lots of things I can do to fix this, but I
thought maybe someone might think its more appropriate to
declare if_data in the scope it was meant to be used in for
the regular release of NetBSD. (by the way, its the same
in FreeBSD too)
Regards,
--------------------------------------------------------------------
Peter Howlett Atlantic Systems Group
E-Mail: Peter.Howlett@ASG.unb.ca Fredericton, N.B. Canada
Peter Howlett Atlantic Systems Group
E-Mail: Peter.Howlett@ASG.unb.ca Fredericton, N.B. Canada
http://www.ASG.unb.ca/personal/ph.html Phone: (506) 447-3050
PGP Key ID: 60F2EEC1 Fax: (506) 453-5004