[GRASS-dev] grass7 compilation error

Glynn Clements glynn at gclements.plus.com
Wed Aug 18 02:16:28 EDT 2010


Markus Metz wrote:

> > Also, what is the reason for defining _NO_OLDNAMES? Is there no
> > alternative?
> 
> Looking for one, but I do not get the initial approach with
> #define lseek lseek64
> to work, see ticket #1131.

Right.

Try explicitly including <io.h> and/or <stdio.h> before defining the
macros. Both headers are protected against repeated inclusion.

Also, this issue should only affect code which explicitly includes
<grass/config.h> before the system header files, which is a bad idea. 
I've fixed lib/gis/copy_dir.c; please fix any others which you may
encounter.

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


More information about the grass-dev mailing list