summaryrefslogtreecommitdiff
path: root/games/rocksndiamonds/files/patch-ag
blob: ae7fc6e8d324a814dc9056703652af8f0bf801b3 (plain) (blame)
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
--- src/joystick.c.orig	Sun Jun 20 18:15:41 1999
+++ src/joystick.c	Sun Jun 20 18:16:24 1999
@@ -11,10 +11,6 @@
 *  joystick.c                                              *
 ***********************************************************/
 
-#ifdef __FreeBSD__
-#include <machine/joystick.h>
-#endif
-
 #include "joystick.h"
 #include "misc.h"
 
@@ -67,7 +63,7 @@
 #ifndef MSDOS
 int Joystick(int player_nr)
 {
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && !defined(NO_JOYSTICK)
   struct joystick joy_ctrl;
 #else
   struct joystick_control
@@ -103,7 +99,7 @@
   js_x  = joy_ctrl.x;
   js_y  = joy_ctrl.y;
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && !defined(NO_JOYSTICK)
   js_b1 = joy_ctrl.b1;
   js_b2 = joy_ctrl.b2;
 #else