From c60604c91abb00d64cdc5e2643f9a36445d18a04 Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 29 Jun 2005 14:32:17 -0700 Subject: [PATCH] [svn] Include sys/time.h to get struct timeval. --- src/ChangeLog | 4 ++++ src/ptimer.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 370b7cc4..7e1617c8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-06-29 Hrvoje Niksic + + * ptimer.c: Include sys/time.h to get struct timeval. + 2005-06-29 Hrvoje Niksic * wget.h: Remove obsolete definition of with_thousand_seps_sum. diff --git a/src/ptimer.c b/src/ptimer.c index 7270825d..417e3de7 100644 --- a/src/ptimer.c +++ b/src/ptimer.c @@ -59,8 +59,10 @@ so, delete this exception statement from your version. */ #ifdef HAVE_UNISTD_H # include #endif -#include #include +#ifdef HAVE_SYS_TIME_H +# include +#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