[GRASS-dev] Re: [GRASS-user] Compilation failure r.in.xyz on
FreeBSD
Glynn Clements
glynn at gclements.plus.com
Sun Nov 5 00:41:03 EST 2006
Hamish wrote:
> > I just tried to build today's CVS checkout, and got a compilation
> > failure in r.in.xyz on my FreeBSD system. The problem is the last
> > commit changed the type of the "filesize" variable to off_t, but on
> > FreeBSD it is necessary to have an explicit include of <sys/types.h>
> > to get the off_t typedef.
> >
> > Inserting a
> > #include <sys/types.h>
> > immediately before the include of <stdio.h> fixed the problem.
>
> ok, I guess that wasn't as safe as I though it was.
>
> should the "#include <sys/types.h>" be included in <grass/config.h> or
> placed by hand in each module that uses "off_t"?
The latter. OTOH, if we add G_fseek/G_ftell functions which
take/return off_t, then it would need to go into <gisdefs.h>.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list