Another problem with joystick handling under bsd *sigh* ( + fix )


On compiling SDL CVS (15.6) under FreeBSD 4.6 i get the following errors :

SDL_sysjoystick.c: In function report_alloc': SDL_sysjoystick.c:414: incompatible type for argument 3 ofhid_report_size’
*** Error code 1

Stop in /usr/src/SDL-1.2/src/joystick/bsd.
*** Error code 1

Stop in /usr/src/SDL-1.2/src/joystick.
*** Error code 1

Stop in /usr/src/SDL-1.2/src.
*** Error code 1

Stop in /usr/src/SDL-1.2.

However, changing line 414 from
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
works… ( so the whole #ifdef block wouldn’t be needed anymore ).
This works also well under NetBSD. Are there any OpenBSD-guys who could test this ?. diff for /src/joystick/BSD/SDL_sysjoystick.c is attached.

regards, robert

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_sysjoystick.diff
Type: application/octet-stream
Size: 118 bytes
Desc: not available