Subject: [libssh2] [ libssh2-Bugs-1943976 ] Fix MSYS+MINGW

[libssh2] [ libssh2-Bugs-1943976 ] Fix MSYS+MINGW

From: <>
Date: Wed, 16 Apr 2008 06:36:50 -0700

Bugs item #1943976, was opened at 2008-04-16 15:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carlo Bramini (carlo_bramini)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix MSYS+MINGW

Initial Comment:
I fixed the compilation of libssh2 under MSYS+MINGW, now it works without problems.
The compilation under MSVC works too.
List of changes:

detect mingw32 (or mingw64) compiler, add some CFLAGS and detect the presence of W32API.
select() was not found at configure time because it is declared with PASCAL calling convention, so its name is decorated with "@". Normally such conditions must be fixed by declaring correct prototype, or including good include file (i.e. winsock2.h).

fixed nonblocking examples for Win32/Win64.

Declare some useful stuff, mainly moved from libssh2_config.h under /win32 directory

Removed some stuff for fixing compilation under MSVC


Carlo Bramini.


You can respond by visiting:

This email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.;198757673;13503038;p?
libssh2-devel mailing list
Received on 2008-04-16