Borland doesn't have <sys/utime.h>, utime() nor

_lseeki64().
This commit is contained in:
Gisle Vanem
2004-11-14 13:50:21 +00:00
parent c3ecd552f5
commit b5c90c9b05
2 changed files with 8 additions and 1 deletions

View File

@@ -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;