summaryrefslogtreecommitdiff
path: root/src/xdemos/glxgears.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdemos/glxgears.c')
-rw-r--r--src/xdemos/glxgears.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xdemos/glxgears.c b/src/xdemos/glxgears.c
index 53c20980..59691513 100644
--- a/src/xdemos/glxgears.c
+++ b/src/xdemos/glxgears.c
@@ -53,8 +53,12 @@ static int
current_time(void)
{
struct timeval tv;
+#ifdef __VMS
+ (void) gettimeofday(&tv, NULL );
+#else
struct timezone tz;
(void) gettimeofday(&tv, &tz);
+#endif
return (int) tv.tv_sec;
}