From 788d3335734b24f4f15045989d1ce75d18e98961 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 26 Oct 2017 13:02:00 +0200 Subject: [PATCH] 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 --- lib/timeval.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeval.h b/lib/timeval.h index 3821bfb73..fb3f680c4 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 {