cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Helping apps use 64bit with libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 21 May 2008 22:34:17 +0200 (CEST)

On Wed, 21 May 2008, Jamie Lokier wrote:

> Isn't that the wrong way around - shouldn't it be if building _with_ LFS,
> make CURLOPT_POSTFIELDSIZE equal to CURLOPT_POSTFIELDSIZE_LARGE (and the
> latter never changes)?

Unfortunately that's harder, since to make that work the app needs to pass the
actual value as a 64bit curl_off_t as well, but CURLOPT_POSTFIELDSIZE is
documented to just take a long... A LFS-built libcurl will suck out 64bits
from a _LARGE option.

-- 
  / daniel.haxx.se
Received on 2008-05-21