www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: INVALID_SOCKET symbol conflict

Re: INVALID_SOCKET symbol conflict

From: Peter Stuge <peter_at_stuge.se>
Date: Fri, 2 Mar 2012 17:38:49 +0100

Alexander Lamaison 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.

Yep. Actually this was already done in libssh2.h so I just pushed a
commit to fix up the name.

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

the libssh2 team