http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.14.tar.gz
[xscreensaver] / hacks / imsmap.c
index cb88c10a6cc6ea8bc0420b1418c81dd4d742f885..fad6a8ca4dedf993df6257e681277f1ef84c60c4 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <stdio.h>
 #include <math.h>
+#include <time.h>
 #include <sys/time.h> /* for gettimeofday() */
 
 #include <X11/Xlib.h>
@@ -418,7 +419,7 @@ draw_map (Display *dpy, Window window)
              if (cycle_p)
                {
                  struct timeval now;
-                 static struct timeval then = { 0, };
+                 static struct timeval then = { 0, };
                  unsigned long diff;
 #ifdef GETTIMEOFDAY_TWO_ARGS
                  struct timezone tzp;