>Hi folks,
>
>I have a question about the definition of struct pollhead: why this
>structure is defined only #if defined(_KERNEL) || defined(_KMEMUSER)?
>
>The problem happens if we declare a variable with the type pollhead in
>some data structures that are shared by kernel and libc, e.g. struct
>sonode in <sys/socketvar.h>.
>
>So, I'm curious if it is possible to define struct pollhead without
>_KERNEL and _KMEMUSER defined?


sonode is also a kernel datastructure only; <sys/socketvar.h> is a kernel
include file; not an ordinary include file (those are generally not
bracketed with #ifdef _KERNEL.

Casper

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to