blob: 3c5d8b921d2144d809db4a677eb4e7248229949b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- src/joystick/bsd/SDL_sysjoystick.c.orig 2010-02-05 11:17:18.000000000 +0100
+++ src/joystick/bsd/SDL_sysjoystick.c 2010-02-05 11:18:15.000000000 +0100
@@ -303,11 +303,12 @@
strerror(errno));
goto usberr;
}
+
+ rep = &hw->inreport;
#if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063)
rep->rid = hid_get_report_id(fd);
if (rep->rid < 0) {
#else
- rep = &hw->inreport;
if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) {
#endif
rep->rid = -1; /* XXX */
|