X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=62c91efa45d52a23530415bbab5372c96fca8189;hb=aa51f2a733292a31345da9aa5167558496ef1915;hp=547c83963ac2aed677ad47e3554ef8bdecc187b6;hpb=c18b61ab4c42e28172ba4fb18b72e7c8af1eb98b;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 547c839..62c91ef 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -1060,7 +1060,7 @@ static void fghJoystickOpen( SFG_Joystick* joy ) # ifdef JS_NEW unsigned char u; # else -# if defined( __linux__ ) +# if defined( __linux__ ) || TARGET_HOST_SOLARIS int counter = 0; # endif # endif @@ -1394,7 +1394,7 @@ static void fghJoystickOpen( SFG_Joystick* joy ) # endif #endif -#if defined( __linux__ ) +#if defined( __linux__ ) || TARGET_HOST_SOLARIS /* Default for older Linux systems. */ joy->num_axes = 2; joy->num_buttons = 32;