With the current Revision 233 i get the following error on compile:
make targets BUILDDIR=debugi386 CFLAGS="-Wall -pipe -Dstricmp=strcasecmp -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DUSE_ALSA -DJoystick -DHAVE_DGA -DHAVE_VIDMODE -DHAVE_GETTEXT -g -DLINUX_VERSION='\"0.12 Debug\"'"
make[1]: Entering directory `src/linux'
gcc -Wall -pipe -Dstricmp=strcasecmp -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DUSE_ALSA -DJoystick -DHAVE_DGA -DHAVE_VIDMODE -DHAVE_GETTEXT -g -DLINUX_VERSION='"0.12 Debug"' -fPIC -o debugi386/ref_gl/gl_glx.o -c ../linux/gl_glx.c -I/usr/X11R6/include
../linux/gl_glx.c: In function 'OpenJoystick':
../linux/gl_glx.c:973: error: 'joy_fd' undeclared (first use in this function)
../linux/gl_glx.c:973: error: (Each undeclared identifier is reported only once
../linux/gl_glx.c:973: error: for each function it appears in.)
../linux/gl_glx.c: In function 'PlatformJoyCommands':
../linux/gl_glx.c:993: error: 'joy_fd' undeclared (first use in this function)
../linux/gl_glx.c: In function 'CloseJoystick':
../linux/gl_glx.c:1008: error: 'joy_fd' undeclared (first use in this function)
make[1]: *** [debugi386/ref_gl/gl_glx.o] Fehler 1
make[1]: Leaving directory `src/linux'
Werner