From owner-freebsd-hackers Thu Jul 13 15:59:48 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from griffin.aciri.org (griffin.aciri.org [192.150.187.12]) by hub.freebsd.org (Postfix) with ESMTP id 0C21A37B8EC for ; Thu, 13 Jul 2000 15:59:43 -0700 (PDT) (envelope-from wilbertdg@hetnet.nl) Received: from hetnet.nl (localhost.aciri.org [127.0.0.1]) by griffin.aciri.org (8.9.3/8.9.3) with ESMTP id PAA86637; Thu, 13 Jul 2000 15:59:32 -0700 (PDT) (envelope-from wilbertdg@hetnet.nl) Message-ID: <396E49D4.DBBA9B5C@hetnet.nl> Date: Thu, 13 Jul 2000 15:59:32 -0700 From: Wilbert de Graaf X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Alfred Perlstein Cc: FreeBSD-hackers Subject: Re: #include question: requires References: <095401bfec6f$495ba110$0a00a8c0@alias> <20000712221526.L25571@fw.wintelcom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > > > > somewhere in the top of . I want to verify if this is indeed > > the best way to solve it ? > > No, the proper solution is to do a forward struct declaration like so: > > struct something; > > struct bigger_something { > struct something foo; > } As we discussed offline Alfred, I would post this didn't work unless it was struct bigger_something { struct something *foo; } but I cannot change the structure that had to be added to . So it's probably going to be the #fndef _SYS_SOCKET_H. Thanks, Wilbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message