From 6ad88aa884e2636d36cea86d9977470179b3d39c Mon Sep 17 00:00:00 2001 From: fayjf Date: Tue, 3 Feb 2009 14:31:36 +0000 Subject: [PATCH] A further response to bug [ 1804696 ] Warnings when building on OpenSolaris -- per comment by Nigel Stewart on that bug report git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@763 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_joystick.c | 2 +- freeglut/freeglut/src/freeglut_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;