diff options
Diffstat (limited to 'src/glut/glx/glut_init.c')
-rw-r--r-- | src/glut/glx/glut_init.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/glut/glx/glut_init.c b/src/glut/glx/glut_init.c index d4d0e8a9783..dcd423a9417 100644 --- a/src/glut/glx/glut_init.c +++ b/src/glut/glx/glut_init.c @@ -154,11 +154,19 @@ __glutOpenXConnection(char *display) #endif /* _WIN32 */ void -__glutInitTime(struct timeval *beginning) +#ifdef OLD_VMS + __glutInitTime(struct timeval6 *beginning) +#else + __glutInitTime(struct timeval *beginning) +#endif { static int beenhere = 0; - static struct timeval genesis; - +#ifdef OLD_VMS + static struct timeval6 genesis; +#else + static struct timeval genesis; +#endif + if (!beenhere) { GETTIMEOFDAY(&genesis); beenhere = 1; @@ -183,8 +191,12 @@ glutInit(int *argcp, char **argv) { char *display = NULL; char *str, *geometry = NULL; - struct timeval unused; - int i; +#ifdef OLD_VMS + struct timeval6 unused; +#else + struct timeval unused; +#endif + int i; if (__glutDisplay) { __glutWarning("glutInit being called a second time."); |