Skip to content
Permalink
Browse files

Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes

 trouble on OpenBSD?
  • Loading branch information
icculus committed Jul 26, 2002
1 parent 731c830 commit 1552aefaceac831188d8dc97b50ed0105e7c7be3
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/joystick/bsd/SDL_sysjoystick.c
@@ -409,9 +409,9 @@ report_alloc(struct report *r, struct report_desc *rd, int repind)
int len;

#ifdef USBHID_NEW
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
#else
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
#else
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
#endif
if (len < 0) {
SDL_SetError("Negative HID report size");

0 comments on commit 1552aef

Please sign in to comment.