[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: apr_off_t is of an ambiguous size.

From: Ben Reser <ben_at_reser.org>
Date: 2004-01-12 18:28:16 CET

On Mon, Jan 12, 2004 at 08:22:06AM -0500, Russell Yanofsky wrote:
> I don't understand. Are you defining __USE_FILE_OFFSET64 somewhere in the
> perl bindings? Isn't the solution to just use the same library settings
> across all parts of subversion?

Automatically picked up by the subversion build system with:
perl -MExtUtils::Embed -e ccopts

> The nice thing about apr_off_t interfaces over off32 and off64 interfaces is
> that apr_off_t interfaces can work ideally on all platforms whether they
> support 64-bit files or not.
>
> If apr has to be changed to avoid this ambiguity, a better way to do it
> would be to define
>
> typedef off64_t apr_off_t;
>
> unconditionally on linux and have it use 64 bit functions like lseek64
> internally.

That would work I guess but that's not consistent with what APR is doing
and I don't think it's a good idea for us to go around redefining apr
types.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 12 18:29:24 2004

This is an archived mail posted to the Subversion Dev mailing list.