This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: error compiling freebsd stack
- From: Gary Thomas <gary at chez-thomas dot org>
- To: Jani Monoses <jani at iv dot ro>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 05 Jun 2002 10:38:20 -0600
- Subject: Re: [ECOS] error compiling freebsd stack
- References: <Pine.LNX.4.21.0206050652390.13303-100000@jani.dy.natinst.com>
On Wed, 2002-06-05 at 04:53, Jani Monoses wrote:
>
> Trying to build an ecos lib with freebsd stack selected gives the infamous
>
> netinet/in.h:323: warning: ANSI C++ forbids data member `ip_opts' with
> same name as enclosing class
>
> the netinet/in.h in the OpenBSD stack is already corrected wrt this
> issue...
>
> it has
>
> struct in_addr ip_dst; /* first hop, 0 w/o src rt */
> #if defined(__cplusplus)
> int8_t Ip_opts[40]; /* cannot have same name as class
> */
> #else
> int8_t ip_opts[40]; /* actually variable in size */
> #endif
>
> while the freebsd one has
> struct in_addr ip_dst; /* first hop, 0 w/o src rt */
> char ip_opts[40]; /* actually variable in size */
>
Thanks, I've fixed this.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss