From: Yang Tse Date: Sat, 14 Oct 2006 12:02:19 +0000 (+0000) Subject: Declare our own timeval struct if HAVE_STRUCT_TIMEVAL is not defined X-Git-Tag: curl-7_16_0~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1855fc35f21c30307e6ae71ca0511f1c654b70a4;p=thirdparty%2Fcurl.git Declare our own timeval struct if HAVE_STRUCT_TIMEVAL is not defined --- diff --git a/lib/timeval.h b/lib/timeval.h index 0792064a78..0d44e2b21f 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -42,22 +42,11 @@ #endif #ifndef HAVE_STRUCT_TIMEVAL - -/* TODO: define HAVE_STRUCT_TIMEVAL as appropriate in our config files for - platforms that lack autotools support. Afterwards remove or simplify - the following logic which will become redundant */ - -#ifndef HAVE_GETTIMEOFDAY -#if !defined(_WINSOCKAPI_) && !defined(__MINGW32__) && !defined(_AMIGASF) && \ - !defined(__LCC__) && !defined(__WATCOMC__) && !defined(__POCC__) && \ - !defined(__ECOS) struct timeval { long tv_sec; long tv_usec; }; #endif -#endif -#endif struct timeval curlx_tvnow(void);