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 ...
Jeffrey Hsu
hsu at leaf.dragonflybsd.org
Mon Jan 10 01:07:08 PST 2005
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>.
Which typedefs, structs, and macros inside _KERNEL does it need? Maybe
we could move those outside _KERNEL.
I don't know which one is to be fixed, the linuxpluginwrapper port or
<sys/socket.h>, but if I need to fix linuxpluginwrapper, how can I do
that without the `#define _KERNEL'?
Here's a suggested gross hack:
#define _SYS_LIBKERN_H_
#define _KERNEL
#include <sys/socket.h>
#undef _KERNEL
or
#define _SYS_SYSTM_H_
#define _KERNEL
#include <sys/socket.h>
#undef _KERNEL
More information about the Commits
mailing list