summaryrefslogtreecommitdiff
path: root/emulators/xmess
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2004-05-28 00:46:27 +0000
committerdillo <dillo@pkgsrc.org>2004-05-28 00:46:27 +0000
commit64d37f9b380752cd373ecd124b8c5a6480759248 (patch)
treea3b8e9ec5ec001c80172e47eb8526b6fe0bfca6a /emulators/xmess
parent0b234cfbee03a9f78ad11dc31ae98f25fef34e49 (diff)
downloadpkgsrc-64d37f9b380752cd373ecd124b8c5a6480759248.tar.gz
actually add patch, pointed out by wiz.
Diffstat (limited to 'emulators/xmess')
-rw-r--r--emulators/xmess/patches/patch-ab22
1 files changed, 22 insertions, 0 deletions
diff --git a/emulators/xmess/patches/patch-ab b/emulators/xmess/patches/patch-ab
new file mode 100644
index 00000000000..0dbf1aff6e4
--- /dev/null
+++ b/emulators/xmess/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.16 2004/05/28 00:46:27 dillo Exp $
+
+--- src/unix/joystick-drivers/joy_usb.c.orig Sun Mar 7 01:01:12 2004
++++ src/unix/joystick-drivers/joy_usb.c
+@@ -255,11 +255,14 @@ static void joy_usb_poll(void)
+
+ static int joy_read(int fd, int i)
+ {
+- int len, axis, usage, page, d;
++ int len, new, axis, usage, page, d;
+ struct hid_item *h;
+
+- len = read(fd, priv_joy_data[i].data_buf, priv_joy_data[i].dlen);
+- if (len != priv_joy_data[i].dlen)
++ new = 0;
++ while ((len=read(fd, priv_joy_data[i].data_buf, priv_joy_data[i].dlen))
++ == priv_joy_data[i].dlen)
++ new = 1;
++ if (!new)
+ return FALSE;
+
+ for (h = priv_joy_data[i].hids; h; h = h->next)