* [ECOS] error compiling freebsd stack
@ 2002-06-05 8:54 Jani Monoses
2002-06-05 9:38 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: Jani Monoses @ 2002-06-05 8:54 UTC (permalink / raw)
To: ecos-discuss
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 */
Jani
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] error compiling freebsd stack
2002-06-05 8:54 [ECOS] error compiling freebsd stack Jani Monoses
@ 2002-06-05 9:38 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2002-06-05 9:38 UTC (permalink / raw)
To: Jani Monoses; +Cc: eCos Discussion
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-05 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05 8:54 [ECOS] error compiling freebsd stack Jani Monoses
2002-06-05 9:38 ` Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).