[GRASS-dev] native WinGRASS and attribute data deadlock, next try
Glynn Clements
glynn at gclements.plus.com
Mon Oct 8 18:50:05 EDT 2007
Moritz Lennert wrote:
> > +static ssize_t readn(int fd, void *buf, size_t count)
> > {
> > - xdrstdio_create (xdrs, _send, XDR_ENCODE);
> > + ssize_t total = 0;
> > +
> > + while (total < count)
> > + {
> > + ssize_t n = read(fd, (char *) buf + total, count - total)
>
> the MINGW compiler complains about a missing ';' at the end here. gcc
> under linux doesn't...don't know why.
Because it isn't compiled on Linux:
#ifdef __MINGW32__
#define USE_STDIO 0
#define USE_READN 1
#else
#define USE_STDIO 1
#define USE_READN 0
#endif
Linux uses stdio, Windows uses readn/writen. I thought that I tested
those functions; obviously not.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list