projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0364f7
)
timeval: make timediff_t also work on 32bit windows
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 26 Oct 2017 11:02:00 +0000
(13:02 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 26 Oct 2017 18:22:55 +0000
(20:22 +0200)
... 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
patch
|
blob
|
history
diff --git
a/lib/timeval.h
b/lib/timeval.h
index 3821bfb73f3e7183ac4ceff2b6774521b8a9aaae..fb3f680c40740971d8d48f125ab46b0b50270e0c 100644
(file)
--- 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 {