diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2004-11-14 13:50:21 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2004-11-14 13:50:21 +0000 |
commit | b5c90c9b0587f68acb2f2857be8103163718da0f (patch) | |
tree | a87ecbbcd6bfbfaced645143d75fecd83b2b7b5c /src | |
parent | c3ecd552f5c89998052f83814b199b263f34f517 (diff) | |
download | curl-b5c90c9b0587f68acb2f2857be8103163718da0f.tar.gz |
Borland doesn't have <sys/utime.h>, utime() nor
_lseeki64().
Diffstat (limited to 'src')
-rw-r--r-- | src/config-win32.h | 2 | ||||
-rw-r--r-- | src/main.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/config-win32.h b/src/config-win32.h index 64a8ca986..b9c407060 100644 --- a/src/config-win32.h +++ b/src/config-win32.h @@ -21,10 +21,12 @@ #define HAVE_FCNTL_H 1 /* Define if you have utime() */ +#if !defined(__BORLANDC__) #define HAVE_UTIME 1 /* Define if you have the <sys/utime.h> header file */ #define HAVE_SYS_UTIME_H 1 +#endif /* Define if you have the <locale.h> header file */ #define HAVE_LOCALE_H 1 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; |