aboutsummaryrefslogtreecommitdiff
path: root/games/rocksndiamonds/files/patch-ag
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-06-22 17:58:23 +0000
committerSteve Price <steve@FreeBSD.org>1999-06-22 17:58:23 +0000
commit3c014fdf9c281aee36641e1f246cf473d3800900 (patch)
tree5a96a0a22d1608a65390c1af34e43513dd7dca87 /games/rocksndiamonds/files/patch-ag
parent3e94dbb52b0f3a289ea4457530370fff5a6fa1e8 (diff)
downloadports-3c014fdf9c281aee36641e1f246cf473d3800900.tar.gz
ports-3c014fdf9c281aee36641e1f246cf473d3800900.zip
Notes
Diffstat (limited to 'games/rocksndiamonds/files/patch-ag')
-rw-r--r--games/rocksndiamonds/files/patch-ag31
1 files changed, 31 insertions, 0 deletions
diff --git a/games/rocksndiamonds/files/patch-ag b/games/rocksndiamonds/files/patch-ag
new file mode 100644
index 000000000000..ae7fc6e8d324
--- /dev/null
+++ b/games/rocksndiamonds/files/patch-ag
@@ -0,0 +1,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