summaryrefslogtreecommitdiff
path: root/lib/timeval.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-14 12:02:19 +0000
committerYang Tse <yangsita@gmail.com>2006-10-14 12:02:19 +0000
commit1855fc35f21c30307e6ae71ca0511f1c654b70a4 (patch)
tree63a5f9a22b0d24056b7e4fccd4f2a4e93a66a2af /lib/timeval.h
parentdc3ed353132f853dc3ddee410a4f9423534a8289 (diff)
downloadcurl-1855fc35f21c30307e6ae71ca0511f1c654b70a4.tar.gz
Declare our own timeval struct if HAVE_STRUCT_TIMEVAL is not defined
Diffstat (limited to 'lib/timeval.h')
-rw-r--r--lib/timeval.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/timeval.h b/lib/timeval.h
index 0792064a7..0d44e2b21 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);