summaryrefslogtreecommitdiff
path: root/games/rocksndiamonds/patches/patch-ag
blob: 66002716c0d5724ef7c7124d5b73b5560a6e0157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ag,v 1.1 2002/02/02 11:59:09 jdolecek Exp $

--- src/joystick.c.orig	Sat Feb  2 12:01:57 2002
+++ src/joystick.c	Sat Feb  2 12:11:43 2002
@@ -11,7 +11,7 @@
 * joystick.c                                               *
 ***********************************************************/
 
-#if defined(PLATFORM_FREEBSD)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 #include <machine/joystick.h>
 #endif
 
@@ -319,7 +319,7 @@ void CheckJoystickData()
 #if defined(PLATFORM_UNIX)
 int Joystick(int player_nr)
 {
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
   struct joystick joy_ctrl;
 #else
   struct joystick_control
@@ -355,7 +355,7 @@ int Joystick(int player_nr)
   js_x  = joy_ctrl.x;
   js_y  = joy_ctrl.y;
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
   js_b1 = joy_ctrl.b1;
   js_b2 = joy_ctrl.b2;
 #else