Subject: libssh2 does not compile with MSYS/MinGW

libssh2 does not compile with MSYS/MinGW

From: Vincent Torri <vincent.torri_at_gmail.com>
Date: Sat, 4 Jun 2011 23:13:26 +0200

Hey

I've downloaded the latest stable release and compiled it with MSYS/MinGW
and the examples failed to build because SOCKET is not defined (and any
program/lib trying to use libssh2 with MSYS/MninGW will fail to compile)

Indeed, WinSock2.h is included only with vc++. To fix that, line 90 must be
replaced by

#ifdef _WIN32

regards

Vincent Torri

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-06-04