pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/xmess/patches actually add patch, pointed ou...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/571f215e3061
branches:  trunk
changeset: 475844:571f215e3061
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Fri May 28 00:46:27 2004 +0000

description:
actually add patch, pointed out by wiz.

diffstat:

 emulators/xmess/patches/patch-ab |  22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 3f4cc4b2a662 -r 571f215e3061 emulators/xmess/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xmess/patches/patch-ab  Fri May 28 00:46:27 2004 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index