Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 1998 13:53:27 -0800 (PST)
From:      Alex Zepeda <garbanzo@hooked.net>
To:        Warner Losh <imp@village.org>
Cc:        current <current@FreeBSD.ORG>
Subject:   Re: egcs chokes on netinet/in.h.. 
Message-ID:  <Pine.BSF.4.05.9812311351300.321-100000@zippy.dyn.ml.org>
In-Reply-To: <199812312050.NAA01102@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help


> I fear the best solution would be:
> struct ip_opts {
> 	struct	in_addr ip_dst;		/* first hop, 0 w/o src rt */
> #ifdef __cplusplus
> 	char	ipopts[40];		/* actually variable in size */
> #else
> 	char	ip_opts[40];
> #endif
> };
>
> And then in your code you could say something gross like:
[..]
> But then it will fail in the same way with newer compilers on other
> systems.

The code itself doesn't access struct ip_opts anywhere, so I assume I'll
just stick an appropiate #ifdef _cplusplus.  *grumble*

- alex

| "Contrary to popular belief, penguins are not the salvation of modern  |
| technology.  Neither do they throw parties for the urban proletariat." |
| Powered by FreeBSD                            http://www.freebsd.org/  |


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9812311351300.321-100000>