curl-library
Re: [PATCH] gnutls 3 compatibility
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 28 Oct 2011 19:00:02 +0200 (CEST)
Date: Fri, 28 Oct 2011 19:00:02 +0200 (CEST)
On Fri, 28 Oct 2011, Mark Brand wrote:
> +# fixme: ugly workaround for loss of this gnutls function
> +void
> +gnutls_transport_set_global_errno (int err)
> +{
> +#ifdef _WIN32
> + /* Keep this in sync with system_errno */
> + switch (err)
> + {
> + case EAGAIN:
> + SetLastError (WSAEWOULDBLOCK);
> + break;
Is this really correct? The gnutls_transport_set_global_errno() gets called
with the input argument being gtls_EAGAIN, gtls_EINTR or gtls_EIO (as returned
by gtls_mapped_sockerrno) so it seems incorrect to assume that they match
EAGAIN and EINTR!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-10-28