a 64 bit history tweek and friends
Russ Allbery
rra at stanford.edu
Fri Jan 7 00:03:44 UTC 2000
Katsuhiro Kondou <kondou at nec.co.jp> writes:
> msh at FreeBSD.ORG (Mark Hittinger) wrote;
>> do seeks to 0L and thats probably wrong. I changed the fseek in
>> innd/his.c to an fseeko() also.
> I don't know if fseeko() is available on every 64bit unix box. Anyone
> knows?
This will automatically be taken care of by configure, at least in 2.3 (I
don't remember off-hand if it's also in 2.2.2). In include/clibrary.h:
/* Large file support. Use the off_t versions, if available. */
#ifdef HAVE_FTELLO
# define ftell ftello
#endif
#ifdef HAVE_FSEEKO
# define fseek fseeko
#endif
The rest of INN source code should continue to use ftell and fseek as
always for backwards compatibility to those systems that don't have the
off_t versions. (At some point, as ftello and fseeko become more common,
we should reverse the sense of that correction, but it should be fine for
now.)
--
Russ Allbery (rra at stanford.edu) <URL:http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list