diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-18 18:47:04 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-18 18:52:29 +0200 |
commit | 599a2c1f1a0630cf1ba60f0cbf0323da68d42cf5 (patch) | |
tree | b6cccda5e68f8684b1d2c1eb4c8f84dd83ec2224 | |
parent | 5a8649863c60e248e224d648dfb1cdbd88b05089 (diff) |
tool_cb_see.c: WinCE build adjustment
-rw-r--r-- | src/tool_cb_see.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tool_cb_see.c b/src/tool_cb_see.c index 00afcb400..af33ad40b 100644 --- a/src/tool_cb_see.c +++ b/src/tool_cb_see.c @@ -108,6 +108,14 @@ int tool_seek_cb(void *userdata, curl_off_t offset, int whence) # endif #endif +#ifdef _WIN32_WCE +/* 64-bit lseek-like function unavailable */ +# undef _lseeki64 +# define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) +# undef _get_osfhandle +# define _get_osfhandle(fd) (fd) +#endif + /* * Truncate a file handle at a 64-bit position 'where'. */ |