Subject: Re: Build error under MinGW 4.4.0

Re: Build error under MinGW 4.4.0

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 8 Jul 2009 14:17:23 +0200

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
Received on 2009-07-08