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 4306 aa6aac8a5243
parent 4305 ecb22f65f0aa
child 4307 f4ee83767bfd
Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version
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 <fcntl.h>
 #include <errno.h>
 
+#include <sys/param.h>
+#ifndef __FreeBSD_kernel_version
+#define __FreeBSD_kernel_version __FreeBSD_version
+#endif
+
 #if defined(HAVE_USB_H)
 #include <usb.h>
 #endif