curl-library
Re: Asking about compiling libcurl with libssh2 in Windows VC98
Date: Thu, 25 Jan 2007 17:06:49 +0100 (CET)
On Thu, 25 Jan 2007, Guenter Knauf wrote:
> I searched through the MingW32 headers, and through my MSVC6 platform SDK -
> but nowehere these are defined...
>
> so I think we need some ifdef blocks in the code - but not sure yet if this
> is the right go:
> +#ifndef S_IFLNK
> +#define S_IFLNK 0xA000
> +#endif
If you go with a recent libssh2 snapshot instead of the 0.14 release, there
shoudn't be any need to use these POSIX names any more. But sure, if 0.14
support is desired we need that kinds of stuff...
> +#ifndef WIN32
> else if ((attrs.permissions & LIBSSH2_SFTP_S_IFMT) ==
> LIBSSH2_SFTP_S_IFSOCK) {
> line[0] = 's';
> }
> +#endif
This doesn't seem clever. You disable lots of support for showing the incoming
options just because you run the client on win32? If you run curl on windows,
listing a directory from a unix sftp server, I would expect a user to see
these options...
I can't think of any real shortcut other than providing a set of these defines
for the platforms that don't have them... until libssh2 > 0.14 is out.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-01-25