mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 15:26:55 -05:00
FreeBSD compile fix
Robert Millan src/joystick/bsd/SDL_sysjoystick.c makes the invalid assumption that __FreeBSD_kernel__ implies presence of "ucr_data" struct member. This breaks recent versions of FreeBSD 10-CURRENT, FreeBSD 9-STABLE and Debian GNU/kFreeBSD "wheezy/sid".
This commit is contained in:
parent
608641e290
commit
67d39f0198
|
|
@ -149,7 +149,7 @@ static char *joydevnames[MAX_JOYS];
|
|||
static int report_alloc(struct report *, struct report_desc *, int);
|
||||
static void report_free(struct report *);
|
||||
|
||||
#if defined(USBHID_UCR_DATA) || defined(__FreeBSD_kernel__)
|
||||
#if defined(USBHID_UCR_DATA)
|
||||
#define REP_BUF_DATA(rep) ((rep)->buf->ucr_data)
|
||||
#elif (defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063))
|
||||
#define REP_BUF_DATA(rep) ((rep)->buf->ugd_data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user