DragonFly BSD
DragonFly commits List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: 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 ...


From: Jeffrey Hsu <hsu@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Jan 2005 01:03:59 -0800 (PST)

	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



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