Here is a patch against libssh2-1.0.1-20090318.tar.gz that sets errno on windows by defining a wrapper _libssh2_recv and _libssh2_send. I was not sure where it should go, so I just put it in misc.c.
Two other small changes: in two line libssh2_packet_read was not updated to _libsssh2_packet_read mingw compiler has unistd.h that defines usleep, so I added ifndef around the libssh2 definition of usleep.
win32.diff
Description: Binary data
------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel