[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: libssh 0.8.4 MSVC Windows build issue


The patch works. Thank you.

It does lead to a warning though:

libssh-0.8.4\include\libssh\sftp.h(57): warning C4142: 'ssize_t': benign redefinition of type [libssh-0.8.4\build_win32\src\ssh_shared.vcxproj]
libssh-0.8.4\include\libssh\priv.h(136): note: see declaration of 'ssize_t'

Wolf Wolfswinkel

> -----Original Message-----
> From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
> Sent: Tuesday, October 16, 2018 3:45 PM
> To: libssh@xxxxxxxxxx
> Cc: Wolf Wolfswinkel <wolf.wolfswinkel@xxxxxxxxxxxxx>
> Subject: Re: libssh 0.8.4 MSVC Windows build issue
> 
> On Tuesday, 16 October 2018 15:14:31 CEST Wolf Wolfswinkel wrote:
> > Hi,
> >
> > I am trying to upgrade from libssh 0.7.5 to 0.8.4.
> >
> > The 0.7.5 build used to work fine with VS2017, but with 0.8.4 it fails
> > because 'ssize_t' is undefined (in connector.c). Does anyone recognize
> > this?
> >
> > I ran cmake as
> >
> > cmake -G "Visual Studio 15 2017 Win64" -DWITH_ZLIB=OFF -
> DWITH_SERVER=OFF
> > -DWITH_EXAMPLES=OFF
> >
> > Thanks,
> >
> > Wolf Wolfswinkel
> 
> Does the attached patch work for you?
> 
> 
> 	Andreas
> 
> --
> Andreas Schneider                 asn@xxxxxxxxxxxxxx
> GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Follow-Ups:
Re: libssh 0.8.4 MSVC Windows build issueAndreas Schneider <asn@xxxxxxxxxxxxxx>
References:
libssh 0.8.4 MSVC Windows build issueWolf Wolfswinkel <wolf.wolfswinkel@xxxxxxxxxxxxx>
Re: libssh 0.8.4 MSVC Windows build issueAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org