Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2000 23:02:28 -0500
From:      "Jacques A. Vidrine" <n@nectar.com>
To:        John Polstra <jdp@polstra.com>
Cc:        hackers@freebsd.org, archie@whistle.com
Subject:   Re: c++ error
Message-ID:  <20000913230227.A15302@spawn.nectar.com>
In-Reply-To: <200009140036.RAA01292@vashon.polstra.com>; from jdp@polstra.com on Wed, Sep 13, 2000 at 05:36:05PM -0700
References:  <200009140019.RAA04988@bubba.whistle.com> <200009140036.RAA01292@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 13, 2000 at 05:36:05PM -0700, John Polstra wrote:
> About the best fix I can think of (and it's not very good) is to
> change <netinet/in.h> so the structure is declared like this:
> 
> struct ip_opts {
> 	struct	in_addr ip_dst;		/* first hop, 0 w/o src rt */
> #ifdef __cplusplus
> 	char	ip_optbuf[40];		/* actually variable in size */
> #else
> 	char	ip_opts[40];		/* actually variable in size */
> #endif
> };
> 
> This shouldn't break any C++ code, since it already wouldn't compile
> anyway. :-)

Please see PR bin/13383 before doing anything like this.  It addresses
a similar situation.  I'll comment more tomorrow after some sleep :-)

-- 
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000913230227.A15302>