--- src/sys/sys/msgport.h 2004/12/21 19:41:36 1.21 +++ src/sys/sys/msgport.h 2006/05/20 06:32:41 1.22 @@ -16,6 +16,14 @@ #include #endif +#ifdef _KERNEL + +#ifndef _SYS_MALLOC_H_ +#include +#endif + +#endif + struct lwkt_msg; struct lwkt_port; struct thread; @@ -114,10 +122,8 @@ typedef struct lwkt_msg { #define MSG_SUBCMD_MASK 0x0000FFFF #ifdef _KERNEL -#ifdef MALLOC_DECLARE MALLOC_DECLARE(M_LWKTMSG); #endif -#endif /* * Notes on port processing requirements: