*
* @APPLE_LICENSE_HEADER_END@
*/
-#include <dev/event.h>
+#warning include <dev/machine/event.h> is going away use <IOKit/hidsystem/IOLLEvent.h> instead
+
+#include <sys/appleapiopts.h>
+#ifdef __APPLE_API_OBSOLETE
+#include <dev/event.h>
+#endif /* __APPLE_API_OBSOLETE */