Hi
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 of
hid_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);
to
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.----
Update : since noone on this ml nor on #sdl on irc.openprojects.net nor anyone else if know seems to use openbsd w/ SDL i think it’s more important that SDL runs under FreeBSD 4.6 than to run under OpenBSD
regards, robert
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_sysjoystick.diff
Type: application/octet-stream
Size: 118 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020620/4eaf9fae/attachment.obj