FreeBSD joystick pci support

Hello,

A patch for pci soundblaster gameports has been submitted recently to the

freebsd-multimedia list. This patch breaks compile of the SDL joystick support
for FreeBSD. I don’t think this patch has been “officially” added to FreeBSD
yet, but if anyone could help me to compile SDL when this patch is applied
that would be really great and I would be super thankful.
You can find information about the FreeBSD patch at
http://www.freebsd.org/cgi/getmsg.cgi?fetch=39806+0+/usr/local/www/db/text/2003/freebsd-multimedia/20030511.freebsd-multimedia

and the SDL compile fails with the following message now:

cc -DPACKAGE=“SDL” -DVERSION=“1.2.5” -DHAVE_ALLOCA=1 -I. -I. -O -pipe
-D_THREAD_SAFE -DHAVE_LIBUSBHID_H -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT
-DUSE_ASMBLIT -I./hermes -I…/…/…/src/hermes -DOSS_SUPPORT -DARTSC_SUPPORT
-I/usr/local/include/artsc -I/usr/X11R6/include -DENABLE_X11 -I./include
-I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE
-DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA
-DHAVE_OPENGL -D_REENTRANT -D_THREAD_SAFE -DSDL_USE_PTHREADS
-DPTHREAD_NO_RECURSIVE_MUTEX -DHAVE_SEMUN -DHAVE_LIBUSB_H -DHAVE_LIBUSBHID_H
-DUSBHID_UCR_DATA -I…/…/…/include -I…/…/…/include/SDL -I…/…/…/src
-I…/…/…/src/freebsd -I…/…/…/src/main -I…/…/…/src/audio
-I…/…/…/src/video -I…/…/…/src/video/XFree86/extensions
-I…/…/…/src/events -I…/…/…/src/joystick -I…/…/…/src/cdrom
-I…/…/…/src/thread -I…/…/…/src/timer -I…/…/…/src/endian
-I…/…/…/src/file -c SDL_sysjoystick.c -fPIC -DPIC -o .libs/SDL_sysjoystick.lo
SDL_sysjoystick.c: In function report_alloc': SDL_sysjoystick.c:410: incompatible type for argument 3 ofhid_report_size’
*** Error code 1

Stop in /usr/ports/devel/sdl12/work/SDL-1.2.5/src/joystick/bsd.
*** Error code 1

Stop in /usr/ports/devel/sdl12/work/SDL-1.2.5/src/joystick.
*** Error code 1

Stop in /usr/ports/devel/sdl12/work/SDL-1.2.5/src.
*** Error code 1

Stop in /usr/ports/devel/sdl12/work/SDL-1.2.5.
*** Error code 1

Stop in /usr/ports/devel/sdl12.

A big thanks to anyone with time to look at this!

Thanks,
Alex

Hello,

A patch for pci soundblaster gameports has been submitted recently to the

freebsd-multimedia list. This patch breaks compile of the SDL joystick support
for FreeBSD. I don’t think this patch has been “officially” added to FreeBSD
yet, but if anyone could help me to compile SDL when this patch is applied
that would be really great and I would be super thankful.

Have you tried applying it to the current version of SDL in CVS?
The SDL CVS code has the *BSD joystick stuff revamped so it should work on
all the current *BSD flavors.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment