aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e8c029ab3..653deb1a5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -216,8 +216,13 @@ char *strdup(char *str)
#if !defined(HAVE_FTRUNCATE) && defined(WIN32)
/*
- * Truncate a file handle at a 64-bit position 'where'
+ * Truncate a file handle at a 64-bit position 'where'.
+ * Borland doesn't even support 64-bit types.
*/
+#ifdef __BORLANDC__
+#define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
+#endif
+
static int ftruncate (int fd, curl_off_t where)
{
curl_off_t curr;