# HG changeset patch # User Ryan C. Gordon # Date 1027703597 0 # Node ID 33712e5d1ec89055879a7aa8397e84e8189095eb # Parent edbbe5775244112364e9657532a575adcd4c9d1f Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes trouble on OpenBSD? diff -r edbbe5775244 -r 33712e5d1ec8 src/joystick/bsd/SDL_sysjoystick.c --- a/src/joystick/bsd/SDL_sysjoystick.c Mon Jul 22 09:49:52 2002 +0000 +++ b/src/joystick/bsd/SDL_sysjoystick.c Fri Jul 26 17:13:17 2002 +0000 @@ -409,9 +409,9 @@ int len; #ifdef USBHID_NEW - len = hid_report_size(rd, repinfo[repind].kind, r->rid); + len = hid_report_size(rd, repinfo[repind].kind, &r->rid); #else - len = hid_report_size(rd, repinfo[repind].kind, &r->rid); + len = hid_report_size(rd, repinfo[repind].kind, r->rid); #endif if (len < 0) { SDL_SetError("Negative HID report size");