summaryrefslogtreecommitdiff
path: root/emulators/xmess/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/xmess/patches/patch-af')
-rw-r--r--emulators/xmess/patches/patch-af40
1 files changed, 40 insertions, 0 deletions
diff --git a/emulators/xmess/patches/patch-af b/emulators/xmess/patches/patch-af
new file mode 100644
index 00000000000..4421fa9076d
--- /dev/null
+++ b/emulators/xmess/patches/patch-af
@@ -0,0 +1,40 @@
+$NetBSD: patch-af,v 1.4 2005/11/17 19:54:09 joerg Exp $
+
+--- src/unix/joystick-drivers/joy_standard.c.orig 2005-11-17 16:17:48.000000000 +0000
++++ src/unix/joystick-drivers/joy_standard.c
+@@ -6,7 +6,7 @@ static int use_old_driver = 0;
+
+ struct rc_option joy_standard_opts[] = {
+ /* name, shortname, type, dest, deflt, min, max, func, help */
+-#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd)
++#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly)
+ { "joydevname", "jdev", rc_string, &joy_dev,
+ "/dev/joy", 0, 0, NULL,
+ "Joystick device prefix (defaults to /dev/joy)" },
+@@ -29,7 +29,7 @@ struct rc_option joy_standard_opts[] = {
+ #include <sys/ioctl.h>
+
+ /* specific joystick for PC clones */
+-#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd)
++#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly)
+
+ #include <machine/joystick.h>
+ typedef struct joystick joy_struct;
+@@ -142,7 +142,7 @@ void joy_standard_init(void)
+ /* fall through to the next case */
+ case 1:
+ joy_data[i].num_axes = 2;
+-#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd)
++#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly)
+ joy_data[i].num_buttons = 2;
+ #else
+ joy_data[i].num_buttons = JOY_BUTTONS;
+@@ -217,7 +217,7 @@ void joy_standard_poll(void)
+ continue;
+
+ /* get value of buttons */
+-#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd)
++#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly)
+ joy_data[i].buttons[0] = my_joy_data.b1;
+ joy_data[i].buttons[1] = my_joy_data.b2;
+ #else