# HG changeset patch # User Sam Lantinga # Date 1255167844 0 # Node ID 7a7a61a1484df94d3d7250d6462c083ac30edb99 # Parent 8cd9ed45c0202852f4a2c48d7e1b8d7efefa02f5 Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version diff -r 8cd9ed45c020 -r 7a7a61a1484d src/joystick/bsd/SDL_sysjoystick.c --- a/src/joystick/bsd/SDL_sysjoystick.c Sat Oct 10 09:36:12 2009 +0000 +++ b/src/joystick/bsd/SDL_sysjoystick.c Sat Oct 10 09:44:04 2009 +0000 @@ -36,6 +36,10 @@ #include #include +#ifndef __FreeBSD_kernel_version +#define __FreeBSD_kernel_version __FreeBSD_version +#endif + #if defined(HAVE_USB_H) #include #endif