]> sjero.net Git - wget/commitdiff
[svn] Include sys/time.h to get struct timeval.
authorhniksic <devnull@localhost>
Wed, 29 Jun 2005 21:32:17 +0000 (14:32 -0700)
committerhniksic <devnull@localhost>
Wed, 29 Jun 2005 21:32:17 +0000 (14:32 -0700)
src/ChangeLog
src/ptimer.c

index 370b7cc443c2426c8066e8e67f990fb65838de32..7e1617c83ad956f59512520646cb592cee15eb58 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * ptimer.c: Include sys/time.h to get struct timeval.
+
 2005-06-29  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * wget.h: Remove obsolete definition of with_thousand_seps_sum.
index 7270825dbf21cfc296d7862749b052d9cb8a010b..417e3de76160587ec94db8ace00eb2cd3ee47980 100644 (file)
@@ -59,8 +59,10 @@ so, delete this exception statement from your version.  */
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#include <assert.h>
 #include <time.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
 
 /* Cygwin currently (as of 2005-04-08, Cygwin 1.5.14) lacks clock_getres,
    but still defines _POSIX_TIMERS!  Because of that we simply use the