]> granicus.if.org Git - curl/commitdiff
tool_cb_see.c: WinCE build adjustment
authorYang Tse <yangsita@gmail.com>
Mon, 18 Jun 2012 16:47:04 +0000 (18:47 +0200)
committerYang Tse <yangsita@gmail.com>
Mon, 18 Jun 2012 16:52:29 +0000 (18:52 +0200)
src/tool_cb_see.c

index 00afcb400663af5f5285594184556121992fbb69..af33ad40b8206ac65a7ca1bed7a90b9f78e3c0c2 100644 (file)
@@ -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'.
  */