Subject: Re: INVALID_SOCKET symbol conflict

Re: INVALID_SOCKET symbol conflict

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Fri, 2 Mar 2012 16:31:55 +0000

On 2 March 2012 16:26, Peter Stuge <peter_at_stuge.se> wrote:

> The fix is of course to use LIBSSH2_INVALID_SOCKET. Please send a
> git patch which does the change, including the neccessary autoconf
> goo.

This wouldn't need autoconf to get involved. Just
#ifdef WIN32
const int LIBSSH2_INVALID_SOCKET = INVALID_SOCKET;
#else
const unsigned int LIBSSH2_INVALID_SOCKET = -1;
#endif

... or something of that ilk.

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-03-02