On Thursday, February 7, 2002, at 10:27 AM, Francis Bouchard wrote: On 07/02/2002 12:29, "Justin C. Walker" <justin@mac.com> wrote: On Thursday, February 7, 2002, at 08:54 AM, Francis Bouchard wrote: There is a bug in the Kernel headers: 1- create a new kext project (not IOKit). 2- this will not compile: #include <mach/mach_types.h> #include <IOKit/IOLib.h> #include <sys/systm.h> I can't say for sure, but it seems to me that including IOKit headers in non-IOKit extensions is asking for trouble. Why are you doing it? My problem is actually use the sys/systm.h in an iokit driver. I used the kext template to dig the cause of error. I will still occur in an IOKit driver. Then I'll just restate my concern :-}. I think, in part, you are "mixing metaphors" when you start including headers from different parts of the system. I'll guess that IOLib.h, or one of its plethora of subsidiary includes, redefines something that systm.h has a need for. As I understand, IOKit are kext but not the other way around (hope I'm not wrong!). You are correct. I meed it for vsprintf Sigh. I suppose from some perspectives, using this in the kernel is reasonable. I just don't have one of them handy. Try 'printf()'. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | If you're not confused, | You're not paying attention *--------------------------------------*-------------------------------* _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.