# HG changeset patch # User Sam Lantinga # Date 1001282332 0 # Node ID c4c4b221a5e5a07e4ec00efd10be24a36390a1fc # Parent 3669d47b07d31219a6d6fd02fca3de662a484e41 *** empty log message *** diff -r 3669d47b07d3 -r c4c4b221a5e5 configure.in --- a/configure.in Sun Sep 23 21:10:30 2001 +0000 +++ b/configure.in Sun Sep 23 21:58:52 2001 +0000 @@ -2084,6 +2084,7 @@ if test x$enable_joystick = xyes; then JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS darwin" JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS darwin/libjoystick_darwin.la" + SDL_LIBS="$SDL_LIBS -framework IOKit" fi # Set up files for the cdrom library if test x$enable_cdrom = xyes; then diff -r 3669d47b07d3 -r c4c4b221a5e5 src/joystick/darwin/Makefile.am --- a/src/joystick/darwin/Makefile.am Sun Sep 23 21:10:30 2001 +0000 +++ b/src/joystick/darwin/Makefile.am Sun Sep 23 21:58:52 2001 +0000 @@ -6,3 +6,5 @@ # The SDL joystick driver sources SRCS = SDL_sysjoystick.c + +AM_CPPFLAGS = -no-cpp-precomp -I/System/Library/Frameworks/Kernel.framework/Headers/ diff -r 3669d47b07d3 -r c4c4b221a5e5 src/joystick/darwin/SDL_sysjoystick.c --- a/src/joystick/darwin/SDL_sysjoystick.c Sun Sep 23 21:10:30 2001 +0000 +++ b/src/joystick/darwin/SDL_sysjoystick.c Sun Sep 23 21:58:52 2001 +0000 @@ -20,7 +20,7 @@ slouken@devolution.com */ -/* SDL joystick driver for Darwn / MacOS X, based on the IOKit HID API */ +/* SDL joystick driver for Darwin / MacOS X, based on the IOKit HID API */ /* Written 2001 by Max Horn */ #include @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include #include