--- a/src/joystick/darwin/SDL_sysjoystick.c Tue Oct 16 15:01:37 2001 +0000
+++ b/src/joystick/darwin/SDL_sysjoystick.c Tue Oct 16 15:04:00 2001 +0000
@@ -33,7 +33,12 @@
#include <mach/mach_error.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOCFPlugIn.h>
+#ifdef MACOS_10_0_4
+#include <IOKit/hidsystem/IOHIDUsageTables.h>
+#else
+/* The header was moved here in MacOS X 10.1 */
#include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h>
+#endif
#include <IOKit/hid/IOHIDLib.h>
#include <IOKit/hid/IOHIDKeys.h>
#include <CoreFoundation/CoreFoundation.h>