# HG changeset patch # User Sam Lantinga # Date 1255167788 0 # Node ID aa6aac8a5243ab286f587eec44afa4b603b63376 # Parent ecb22f65f0aa5bfc3b62eaf06b9d1392eddc60c0 Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version diff -r ecb22f65f0aa -r aa6aac8a5243 src/joystick/bsd/SDL_sysjoystick.c --- a/src/joystick/bsd/SDL_sysjoystick.c Sat Oct 10 09:38:02 2009 +0000 +++ b/src/joystick/bsd/SDL_sysjoystick.c Sat Oct 10 09:43:08 2009 +0000 @@ -36,6 +36,11 @@ #include #include +#include +#ifndef __FreeBSD_kernel_version +#define __FreeBSD_kernel_version __FreeBSD_version +#endif + #if defined(HAVE_USB_H) #include #endif