]> granicus.if.org Git - curl/commitdiff
Declare our own timeval struct if HAVE_STRUCT_TIMEVAL is not defined
authorYang Tse <yangsita@gmail.com>
Sat, 14 Oct 2006 12:02:19 +0000 (12:02 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 14 Oct 2006 12:02:19 +0000 (12:02 +0000)
lib/timeval.h

index 0792064a78a7d295e8a0f602cfd1ff1090079400..0d44e2b21f023bc52f62b90e23e0838f7006274c 100644 (file)
 #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);