fseeko
Russ Allbery
rra at stanford.edu
Sun Mar 3 04:53:42 UTC 2002
Jeffrey M Vinocur <jeff at litech.org> writes:
> I can't figure out what .h actually needs to be included to get the
> prototype for fseeko on platforms which have it (e.g., linux).
> "clibrary.h" only defines it for !HAVE_FSEEKO, and the only place I can
> find it on the system is in <stdio.h> ...which is included by clibrary.h
> Yet `make warnings` gives me an implicit definition warning, and I don't
> know why.
You need -D_GNU_SOURCE to get fseeko and ftello prototyped on Linux, with
at least some versions of glibc. It's a Linux-specific weirdness, to be
hopefully eventually resolved by moving to a current version of autoconf
and smarter large file macros.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list