cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re[2]: >2 GB file support

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 18 Aug 2003 17:13:03 +0200 (CEST)

On Mon, 18 Aug 2003, Vladimir Trebicky wrote:

Thanks for testing!

> Ok, the problem was that the ./configure didn't recognize that
> -D_FILE_OFFSET_BITS=64 is needed.

I think it did, but the define wasn't set for the application code. I think
this patch is needed:

--- src/config.h.in 4 Jul 2003 18:17:58 -0000 1.13
+++ src/config.h.in 18 Aug 2003 15:11:33 -0000 1.14
@@ -43,3 +43,9 @@

 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
 #undef TIME_WITH_SYS_TIME
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+#undef _FILE_OFFSET_BITS
+
+/* Define for large files, on AIX-style hosts. */
+#undef _LARGE_FILES

> Now I'm trying to upload some >2GB file via ftp and check integrity.

Did it work?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-18