Subject: [libssh2] #237: configure -DLIBSSH2_WIN32 @cygwin

[libssh2] #237: configure -DLIBSSH2_WIN32 @cygwin

From: libssh2 Trac <>
Date: Mon, 14 May 2012 17:53:23 -0000

#237: configure -DLIBSSH2_WIN32 @cygwin
 Reporter: flederwiesel | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone: 1.4.0
Component: misc | Version: 1.3.0
 Keywords: cygwin configure | Blocked By:
   Blocks: |
 The configure script wrongly defines -DLIBSSH2_WIN32 for cygwin, which
 leads to _libssh2_gettimeofday() being defined, which is not needed, since
 cygwin has its own gettimeofday() and - what is worse - does not compile,
 if you do not provide win32 api FILETIME and GetSystemTimeAsFileTime().

 A patch, which at least worked for my configuration, is attached.

Ticket URL: <>
libssh2 <>
C library for writing portable SSH2 clients
Received on 2012-05-14