Skip site navigation (1)Skip section navigation (2)
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
Message-ID:  <19970820080630.CM26277@uriah.heep.sax.de>
In-Reply-To: <19970819173939.43163@right.PCS>; from Jonathan Lemon on Aug 19, 1997 17:39:39 -0500
References:  <Pine.NEB.3.95.970819141906.17998E-100000@mail.cdsnet.net> <19970819173939.43163@right.PCS>

next in thread | previous in thread | raw e-mail | index | archive | help
As Jonathan Lemon wrote:

> Ugh.  <machine/vm86.h> declares a function that takes a (struct proc *)
> as a parameter, but you haven't included <sys/proc.h> beforehand, so
> thus this error.  I see that <sys/user.h> 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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970820080630.CM26277>