Re: Make sys/user.h safe for multiple includes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Philip Guenther
Date: Friday, December 24, 2010 - 5:19 pm

On Mon, Dec 20, 2010 at 4:06 PM, Christian Ludwig
<chrissicool@chrissicool.net> wrote:

You have a header that needs the full struct user definition and can't
make do with a forward declaration of it?

(Note that the struct user definition is the _only_ correct reason to
#include <sys/user.h>)

This has been handled so far by simply including sys/user.h in each
file that needs the header.  For example, machine/freebsd_machdep.h
would seem to need the struct user definition for its offsetof usage,
but instead the one .c file that uses that header pulls it in.


Philip Guenther
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Make sys/user.h safe for multiple includes, Christian Ludwig, (Mon Dec 20, 5:06 pm)
Re: Make sys/user.h safe for multiple includes, Philip Guenther, (Fri Dec 24, 5:19 pm)