Include files that depend on include files

Brooks Davis brooks at one-eyed-alien.net
Tue Aug 9 22:01:35 GMT 2005


On Tue, Aug 09, 2005 at 11:49:57PM +0200, Dirk Gouders wrote:
> Hello,
> 
> I am currently playing with the KLD facility on a 4.11-STABLE system
> and noticed that there are some include files that need other files
> included before them, e.g. sys/module.h and sys/linker.h cannot be
> preprocessed/compiled without including other necessary files before
> them.
> 
> Is that intentional?  And if yes, is there a difference of such
> a "rule" between "kernel include files" and those that are normally
> included in "user space code"?

This is intentational.  We try to avoid having headers bring in more
then absolutly required when included.  I'm not sure what your second
question means.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050809/5992f079/attachment.bin


More information about the freebsd-hackers mailing list