diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-22 13:11:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-22 13:11:35 +0000 |
commit | a259f66fa4b8663803b5604917457d32dee90540 (patch) | |
tree | b9867b39828661d725cf149d4f89a2bb5be7ffda | |
parent | 83d77dc013a54cce1c5bf30fd0446b81efb4a2aa (diff) |
attempt to fix 64bit seeking for Windows, does it work?
-rw-r--r-- | lib/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/file.c b/lib/file.c index 2bf544add..274f67550 100644 --- a/lib/file.c +++ b/lib/file.c @@ -152,6 +152,10 @@ CURLcode Curl_file_connect(struct connectdata *conn) return CURLE_OK; } +#if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4) +#define lseek(x,y,z) _lseeki64(x, y, z) +#endif + /* This is the do-phase, separated from the connect-phase above */ CURLcode Curl_file(struct connectdata *conn) @@ -234,7 +238,6 @@ CURLcode Curl_file(struct connectdata *conn) Curl_pgrsSetDownloadSize(data, (double)expected_size); if(conn->resume_from) - /* Added by Dolbneff A.V & Spiridonoff A.V */ lseek(fd, conn->resume_from, SEEK_SET); while (res == CURLE_OK) { |