From: Daniel Stenberg Date: Thu, 10 Mar 2022 16:47:22 +0000 (+0100) Subject: libssh: fix build with old libssh versions X-Git-Tag: curl-7_83_0~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b0fd39;p=thirdparty%2Fcurl.git libssh: fix build with old libssh versions ... that don't have the SSH_S_* defines. Spotted on a machine using libssh 0.7.3 Closes #8574 --- diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 9879161b64..0d265a0d3a 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -105,6 +105,13 @@ } while(0) #endif +#ifndef SSH_S_IFMT +#define SSH_S_IFMT S_IFMT +#endif +#ifndef SSH_S_IFLNK +#define SSH_S_IFLNK S_IFLNK +#endif + /* Local functions: */ static CURLcode myssh_connect(struct Curl_easy *data, bool *done); static CURLcode myssh_multi_statemach(struct Curl_easy *data,