From owner-freebsd-hackers Tue Aug 19 23:21:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA02308 for hackers-outgoing; Tue, 19 Aug 1997 23:21:02 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id XAA02297 for ; Tue, 19 Aug 1997 23:20:56 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA27766; Wed, 20 Aug 1997 08:20:54 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id IAA24677; Wed, 20 Aug 1997 08:06:30 +0200 (MET DST) Message-ID: <19970820080630.CM26277@uriah.heep.sax.de> Date: Wed, 20 Aug 1997 08:06:30 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Cc: jlemon@americantv.com (Jonathan Lemon) Subject: Re: vm86.h compile warning References: <19970819173939.43163@right.PCS> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <19970819173939.43163@right.PCS>; from Jonathan Lemon on Aug 19, 1997 17:39:39 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Jonathan Lemon wrote: > Ugh. declares a function that takes a (struct proc *) > as a parameter, but you haven't included beforehand, so > thus this error. I see that does pull in proc.h, but too > late. > > I'm not sure what the best way to fix this is; #ifdef KERNEL around the > parameter declarations in vm86.h? That's ugly. Remember, if you're only passing struct pointers around, you are pretty much allowed using them as ``opaque structs''. Just declare ``struct proc;'' as a forward above to shut up the complaint. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)