From d10e174fd1445844f00b84317bb25f90b304dd5d Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 29 Jan 2007 20:24:00 +0000 Subject: Some compilers lacks . Include "timeval.h" to simplify the #ifdefs. --- tests/libtest/lib509.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/libtest/lib509.c') diff --git a/tests/libtest/lib509.c b/tests/libtest/lib509.c index a911e3654..86e169d8d 100644 --- a/tests/libtest/lib509.c +++ b/tests/libtest/lib509.c @@ -12,7 +12,6 @@ #ifdef USE_SSLEAY -#include #include #include @@ -33,7 +32,7 @@ #define MAIN_LOOP_HANG_TIMEOUT 30 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 20 * 1000 -/* +/* * We use this ZERO_NULL to avoid picky compiler warnings, * when assigning a NULL pointer to a function pointer var. */ @@ -259,7 +258,7 @@ int test(char *URL) interval.tv_sec = 1; interval.tv_usec = 0; - if (curlx_tvdiff(curlx_tvnow(), ml_start) > + if (curlx_tvdiff(curlx_tvnow(), ml_start) > MAIN_LOOP_HANG_TIMEOUT) { ml_timedout = TRUE; break; @@ -269,7 +268,7 @@ int test(char *URL) while (res == CURLM_CALL_MULTI_PERFORM) { res = curl_multi_perform(multi, &running); - if (curlx_tvdiff(curlx_tvnow(), mp_start) > + if (curlx_tvdiff(curlx_tvnow(), mp_start) > MULTI_PERFORM_HANG_TIMEOUT) { mp_timedout = TRUE; break; -- cgit v1.2.3