Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD master CVS tree commits



> christos
> Fri Sep 20 18:11:39 EDT 1996
> Update of /a/cvsroot/src/sys/sys
> In directory netbsd1:/var/slash-tmp/cvs-serv26204
> 
> Modified Files:
>       systm.h 
> Log Message:
> Add fwd struct declarations and protect include of libkern.h

OK, i'll bite.

When should system.h be included in user-land code, since it's
prototypes and declarations for _kernel_ code which won't be available
in user-land environments.

short answer:

systm.h should _never_ be included by user-land code.



If this is to fix ffs_subr.c, then fix ffs_subr.c to not include
systm.h if !_KERNEL.



cgd



Home | Main Index | Thread Index | Old Index