From owner-freebsd-current Thu Dec 31 13:50:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23725 for freebsd-current-outgoing; Thu, 31 Dec 1998 13:50:54 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zippy.dyn.ml.org (spain-40.ppp.hooked.net [206.169.228.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23712 for ; Thu, 31 Dec 1998 13:50:51 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.9.1/8.8.8) with ESMTP id NAA40785; Thu, 31 Dec 1998 13:53:27 -0800 (PST) (envelope-from garbanzo@hooked.net) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Thu, 31 Dec 1998 13:53:27 -0800 (PST) From: Alex Zepeda X-Sender: garbanzo@zippy.dyn.ml.org To: Warner Losh cc: current Subject: Re: egcs chokes on netinet/in.h.. In-Reply-To: <199812312050.NAA01102@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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