changeset 4306:aa6aac8a5243 SDL-1.2

Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Oct 2009 09:43:08 +0000
parents ecb22f65f0aa
children f4ee83767bfd
files src/joystick/bsd/SDL_sysjoystick.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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