1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-08 12:28:06 -05:00

Use proper 'stat' structure for fstat(). I.e. 'struct _stati64' and '_fstati64()'

on Win32.
This commit is contained in:
Gisle Vanem 2006-10-26 14:30:11 +00:00
parent 5b75b423e6
commit 125830ab4b

View File

@ -25,7 +25,7 @@ int test(char *URL)
CURL *curl; CURL *curl;
FILE *hd_src ; FILE *hd_src ;
int hd ; int hd ;
struct stat file_info; struct_stat file_info;
int running; int running;
char done=FALSE; char done=FALSE;
CURLM *m; CURLM *m;
@ -118,7 +118,7 @@ int test(char *URL)
interval.tv_sec = 1; interval.tv_sec = 1;
interval.tv_usec = 0; interval.tv_usec = 0;
if (curlx_tvdiff(curlx_tvnow(), ml_start) > if (curlx_tvdiff(curlx_tvnow(), ml_start) >
MAIN_LOOP_HANG_TIMEOUT) { MAIN_LOOP_HANG_TIMEOUT) {
ml_timedout = TRUE; ml_timedout = TRUE;
break; break;
@ -128,7 +128,7 @@ int test(char *URL)
while (res == CURLM_CALL_MULTI_PERFORM) { while (res == CURLM_CALL_MULTI_PERFORM) {
res = (int)curl_multi_perform(m, &running); res = (int)curl_multi_perform(m, &running);
if (curlx_tvdiff(curlx_tvnow(), mp_start) > if (curlx_tvdiff(curlx_tvnow(), mp_start) >
MULTI_PERFORM_HANG_TIMEOUT) { MULTI_PERFORM_HANG_TIMEOUT) {
mp_timedout = TRUE; mp_timedout = TRUE;
break; break;