changeset 1185:58538e140e2d

Apparently some bits of the BSD joystick code are x86 only...joystick.h only exists at /usr/sys/arch/i386/include/joystick.h, for example.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 22 Nov 2005 15:10:41 +0000
parents a9542c38dcdb
children 0276947bee66
files src/joystick/bsd/SDL_sysjoystick.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/joystick/bsd/SDL_sysjoystick.c	Tue Nov 22 15:07:41 2005 +0000
+++ b/src/joystick/bsd/SDL_sysjoystick.c	Tue Nov 22 15:10:41 2005 +0000
@@ -60,7 +60,7 @@
 #include <sys/joystick.h>
 #endif
 
-#if defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__NetBSD__) || (defined(__OpenBSD__) && defined(__i386__))
 #include <machine/joystick.h>
 #endif
 
@@ -370,7 +370,7 @@
 	int nbutton, naxe = -1;
 	Sint32 v;
 
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || (defined(__OpenBSD__) && defined(__i386__))
 	struct joystick gameport;
 	static int x, y, xmin = 0xffff, ymin = 0xffff, xmax = 0, ymax = 0;