cvs commit: src/sys/net bpf.c if.c if_arcsubr.c if_atmsubr.c if_ethersubr.c if_fddisubr.c if_iso88025subr.c radix.c raw_usrreq.c route.c route.h rtsock.c src/sys/net/faith if_faith.c src/sys/netinet if_ether.c in.c in_cksum.c in_gif.c in_pcb.c ...

Joerg Sonnenberger joerg at britannica.bec.de
Mon Jan 10 05:23:44 PST 2005


On Mon, Jan 10, 2005 at 04:29:04PM +0900, YONETANI Tomokazu wrote:
> This commit broke the build of linuxpluginwrapper which does the following:
> 
> #define _KERNEL
> #include <sys/socket.h>
> #undef _KERNEL
> 
> to obtain typedefs, structs and macros, but not function declarations
> at the end of the <sys/socket.h>.  After the commit, it now includes
> <sys/libkern.h>, which includes <sys/systm.h>, which declares string
> manipulation functions with arguments slightly different from ones
> declared in <string.h>.

The source is wrong. A userland program should NEVER define _KERNEL, only
_KERNEL_STRUCTURES.

Joerg





More information about the Commits mailing list