changeset 3367:7a7a61a1484d

Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Oct 2009 09:44:04 +0000
parents 8cd9ed45c020
children ca6f355e44b2
files src/joystick/bsd/SDL_sysjoystick.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <fcntl.h>
 #include <errno.h>
 
+#ifndef __FreeBSD_kernel_version
+#define __FreeBSD_kernel_version __FreeBSD_version
+#endif
+
 #if defined(HAVE_USB_H)
 #include <usb.h>
 #endif