Borland doesn't have <sys/utime.h>, utime() nor
authorGisle Vanem <gvanem@broadpark.no>
Sun, 14 Nov 2004 13:50:21 +0000 (13:50 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sun, 14 Nov 2004 13:50:21 +0000 (13:50 +0000)
_lseeki64().

src/config-win32.h
src/main.c

index 64a8ca9..b9c4070 100644 (file)
 #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
index e8c029a..653deb1 100644 (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;