Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version
authorSam Lantinga <slouken@libsdl.org>
Sat, 10 Oct 2009 09:44:04 +0000
changeset 33677a7a61a1484d
parent 3366 8cd9ed45c020
child 3368 ca6f355e44b2
Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version
src/joystick/bsd/SDL_sysjoystick.c
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Sat Oct 10 09:36:12 2009 +0000
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Sat Oct 10 09:44:04 2009 +0000
     1.3 @@ -36,6 +36,10 @@
     1.4  #include <fcntl.h>
     1.5  #include <errno.h>
     1.6  
     1.7 +#ifndef __FreeBSD_kernel_version
     1.8 +#define __FreeBSD_kernel_version __FreeBSD_version
     1.9 +#endif
    1.10 +
    1.11  #if defined(HAVE_USB_H)
    1.12  #include <usb.h>
    1.13  #endif