Subject: Re: Build error under MinGW 4.4.0

Re: Build error under MinGW 4.4.0

From: Steven Van Ingelgem <steven_at_vaningelgem.be>
Date: Wed, 8 Jul 2009 14:33:06 +0200

libssh2_priv.h @ around line 100:
/* Provide iovec / writev on WIN32 platform. */
#ifdef WIN32

/* same as WSABUF */
struct iovec {
    u_long iov_len;
    char *iov_base;
};

So it is only on Win32 yes...

Grtz,
Steven

2009/7/8 Peter Stuge <peter_at_stuge.se>

> Steven Van Ingelgem wrote:
> > *Possible fix:*
> > Index: userauth.c
> > ===================================================================
> > --- userauth.c (revision 240)
> > +++ userauth.c (working copy)
> > @@ -731,11 +731,11 @@
> > }
> >
> > _libssh2_htonu32(buf, session->session_id_len);
> > - datavec[0].iov_base = buf;
> > + datavec[0].iov_base = (char*)buf;
>
> Mh, I don't know. Why would it be char? If anything, uchar, but
> rather void:
>
> stuge_at_x40 /usr/include $ grep -r iov_base .
> ./sasl/sasl.h: char *iov_base;
> ./linux/uio.h: void *iov_base; /* BSD uses caddr_t (1003.1g requires void
> *) */
> ./valgrind/vki/vki-linux.h: void __user *iov_base; /* BSD uses caddr_t
> (1003.1g requires void *) */
>
> Is it char on win32 only?
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-07-08