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 <[EMAIL PROTECTED]>

_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev

Reply via email to