bug in headers (how to file a bug for such things?)
bug in headers (how to file a bug for such things?)
- Subject: bug in headers (how to file a bug for such things?)
- From: Francis Bouchard <email@hidden>
- Date: Thu, 07 Feb 2002 11:54:55 -0500
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>
kern_return_t test_start (kmod_info_t * ki, void * d) {
return KERN_SUCCESS;
}
kern_return_t test_stop (kmod_info_t * ki, void * d) {
return KERN_SUCCESS;
}
but this will COMPILE:
#include <mach/mach_types.h>
#include <sys/systm.h> // SWAPPED THE INCLUDES
#include <IOKit/IOLib.h> // SWAPPED THE INCLUDES
kern_return_t test_start (kmod_info_t * ki, void * d) {
return KERN_SUCCESS;
}
kern_return_t test_stop (kmod_info_t * ki, void * d) {
return KERN_SUCCESS;
}
Franics
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.