diff options
| author | Yang Tse <yangsita@gmail.com> | 2006-10-13 01:35:14 +0000 | 
|---|---|---|
| committer | Yang Tse <yangsita@gmail.com> | 2006-10-13 01:35:14 +0000 | 
| commit | 32ac4edeedb44cb1c95c522e8366665147d463d5 (patch) | |
| tree | 317a9a8bfc9fd091f407ae1dbfdd903bf2271f04 /lib | |
| parent | 4c04c091385a0d0659ef5b7086036a468ebeb843 (diff) | |
Check for struct timeval at configuration time
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/timeval.h | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/timeval.h b/lib/timeval.h index 5decc892b..0792064a7 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -41,6 +41,12 @@  #endif  #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__) && \ @@ -51,6 +57,7 @@ struct timeval {  };  #endif  #endif +#endif  struct timeval curlx_tvnow(void);  | 
