From owner-freebsd-hackers Wed Sep 13 21: 2:35 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 773A037B423 for ; Wed, 13 Sep 2000 21:02:32 -0700 (PDT) Received: by gw.nectar.com (Postfix, from userid 1001) id 25B7D1925D; Wed, 13 Sep 2000 23:02:28 -0500 (CDT) Date: Wed, 13 Sep 2000 23:02:28 -0500 From: "Jacques A. Vidrine" To: John Polstra Cc: hackers@freebsd.org, archie@whistle.com Subject: Re: c++ error Message-ID: <20000913230227.A15302@spawn.nectar.com> References: <200009140019.RAA04988@bubba.whistle.com> <200009140036.RAA01292@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200009140036.RAA01292@vashon.polstra.com>; from jdp@polstra.com on Wed, Sep 13, 2000 at 05:36:05PM -0700 X-Url: http://www.nectar.com/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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