From: Daniel Stenberg Date: Thu, 26 Oct 2017 11:02:00 +0000 (+0200) Subject: timeval: make timediff_t also work on 32bit windows X-Git-Tag: curl-7_57_0~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=788d3335734b24f4f15045989d1ce75d18e98961;p=thirdparty%2Fcurl.git timeval: make timediff_t also work on 32bit windows ... by using curl_off_t for the typedef if time_t is larger than 4 bytes. Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/b9d25f9a6b3ca791385b80a6a3c3fa5ae113e1e0#co mmitcomment-25205058 Closes #2019 --- diff --git a/lib/timeval.h b/lib/timeval.h index 3821bfb73f..fb3f680c40 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -27,7 +27,7 @@ #if SIZEOF_TIME_T < 8 typedef int timediff_t; #else -typedef ssize_t timediff_t; +typedef curl_off_t timediff_t; #endif struct curltime {