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
This commit is contained in:
Daniel Stenberg 2022-03-10 17:47:22 +01:00
parent 7da29df6d3
commit 7b0fd39db2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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,