[GRASS-dev] off_t problem

One small problem with the recent off_t changes: r.support/modhead/ask_format.c and factors.h need to include either sys/types.h or unistd.h, like is done in row_addr.c.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

William Kyngesburye wrote:

One small problem with the recent off_t changes: r.support/modhead/
ask_format.c and factors.h need to include either sys/types.h or
unistd.h, like is done in row_addr.c.

I had figured that adding it to local_proto.h would suffice; except
that most of the files didn't include local_proto.h.

Fixed in CVS.

--
Glynn Clements <glynn@gclements.plus.com>

Yeah, that's the one. Glynn fixed it already in CVS.

On Apr 18, 2007, at 3:50 AM, Agustin Diez Castillo wrote:

I guess this is related
Errors in:
/Users/Shared/grasssource/grass6/raster/r.support/modhead
--
Finished compilation: Wed Apr 18 09:24:18 CEST 2007
(In case of errors please change into the directory with error and run 'make')
make: *** [default] Error 1
regadiuet:/Users/Shared/grasssource/grass6 adiez$ cd raster/r.support/modhead
regadiuet:/Users/Shared/grasssource/grass6/raster/r.support/modhead adiez$ make
Makefile:15: warning: overriding commands for target `htmletc1'
../../../include/Make/Html.make:117: warning: ignoring old commands for target `htmletc1'
gcc -I/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.9.1/include -arch ppc -arch i386 -DPACKAGE=\""grassmods"\" -I/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.9.1/include \
        -o OBJ.i686-apple-darwin8.9.1/ask_format.o -c ask_format.c
ask_format.c:14: error: parse error before 'off_t'

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro