From owner-freebsd-stable Fri Jul 7 6:12:15 2000 Delivered-To: freebsd-stable@freebsd.org Received: from citadel.cequrux.com (citadel.cequrux.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id 797A337BB76 for ; Fri, 7 Jul 2000 06:12:08 -0700 (PDT) (envelope-from gram@cequrux.com) Received: (from nobody@localhost) by citadel.cequrux.com (8.8.8/8.6.9) id PAA26637; Fri, 7 Jul 2000 15:11:29 +0200 (SAST) Received: by citadel.cequrux.com via recvmail id 26633; Fri Jul 7 15:11:02 2000 Message-ID: <3ab0baefb12d7472b9def36580f56874@cequrux.com> Date: Fri, 07 Jul 2000 15:12:51 +0200 From: Graham Wheeler Organization: Cequrux Technologies X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Jim King Cc: freebsd-stable@freebsd.org Subject: Re: Any chance of changing struct member names in nameser.h? References: <24c7bf729bd71b904dba8ca2d38e3205@cequrux.com> <18a82ff8d91179d356d8037283bdd5d8@cequrux.com> <00ce01bfe810$36da2510$08e48486@marble> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jim King wrote: > > Graham Wheeler wrote: > > > Graham Wheeler wrote: > > > > > > Hi all > > > > > > I send a similar request to the KAME group a while back but got no > > > response. > > > > > > Recent versions of BIND have changed the name of one of the structure > > > members in nameser.h to be "class". > > > > Actually, I was wronng - the nameser.h in contrib/bind is fine. But the > > one in include/arpa/nameser.h is not, so this *is* specific to > > FreeBSD/KAME... > > imho, the right way to handle this is in your source, using an 'extern "C"' > directive to tell the compiler that it's including a C header and not a C++ > header. e.g. > > extern "C" { > #include > } > > If the #include directive is in another header file that might be used in > both C and C++ programs you'd probably want to put some '#ifdef __cplusplus' > around the extern's. See section 9.2.4 in Stroustrup 3rd edition for a good > example. Great idea, except I thought of that long ago and it doesn't work. gram -- Dr Graham Wheeler E-mail: gram@cequrux.com Director, Research and Development WWW: http://www.cequrux.com CEQURUX Technologies Phone: +27(21)423-6065 Firewalls/VPN Specialists Fax: +27(21)424-3656 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message