diff --git a/freeglut/freeglut/src/freeglut_joystick.c b/freeglut/freeglut/src/freeglut_joystick.c index 1269a76..62c91ef 100644 --- a/freeglut/freeglut/src/freeglut_joystick.c +++ b/freeglut/freeglut/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 diff --git a/freeglut/freeglut/src/freeglut_main.c b/freeglut/freeglut/src/freeglut_main.c index ec08087..e47bd8a 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/src/freeglut_main.c @@ -308,7 +308,7 @@ static void fghCheckTimers( void ) * 32-bit, where the GLUT API return value is also overflowed. */ unsigned long fgSystemTime(void) { -#if HAVE_GETTIMEOFDAY +#if TARGET_HOST_SOLARIS || HAVE_GETTIMEOFDAY struct timeval now; gettimeofday( &now, NULL ); return now.tv_usec/1000 + now.tv_sec*1000;