Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 10 Oct 2009 09:43:08 +0000
branchSDL-1.2
changeset 4306aa6aac8a5243
parent 4305 ecb22f65f0aa
child 4307 f4ee83767bfd
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:38:02 2009 +0000
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Sat Oct 10 09:43:08 2009 +0000
     1.3 @@ -36,6 +36,11 @@
     1.4  #include <fcntl.h>
     1.5  #include <errno.h>
     1.6  
     1.7 +#include <sys/param.h>
     1.8 +#ifndef __FreeBSD_kernel_version
     1.9 +#define __FreeBSD_kernel_version __FreeBSD_version
    1.10 +#endif
    1.11 +
    1.12  #if defined(HAVE_USB_H)
    1.13  #include <usb.h>
    1.14  #endif