mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +03:00
Check for struct timeval at configuration time
This commit is contained in:
parent
4c04c09138
commit
32ac4edeed
5 changed files with 127 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue