A further response to bug [ 1804696 ] Warnings when building on OpenSolaris -- per...
[freeglut] / src / freeglut_main.c
index ec08087..e47bd8a 100644 (file)
@@ -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;