Declare our own timeval struct if HAVE_STRUCT_TIMEVAL is not defined
This commit is contained in:
parent
dc3ed35313
commit
1855fc35f2
@ -42,22 +42,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_STRUCT_TIMEVAL
|
#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 {
|
struct timeval {
|
||||||
long tv_sec;
|
long tv_sec;
|
||||||
long tv_usec;
|
long tv_usec;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct timeval curlx_tvnow(void);
|
struct timeval curlx_tvnow(void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user