diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-03-10 17:47:22 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-03-10 19:52:13 +0100 |
commit | 7b0fd39db21a9291b4189d6e5b05ade40b3dce58 (patch) | |
tree | ebc943e9242d413f899b10a5cbd55f6166973dbb /lib/vssh/libssh.c | |
parent | 7da29df6d34bca163f320dd792815b19c4f91033 (diff) | |
download | curl-7b0fd39db21a9291b4189d6e5b05ade40b3dce58.tar.gz |
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
Diffstat (limited to 'lib/vssh/libssh.c')
-rw-r--r-- | lib/vssh/libssh.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 9879161b6..0d265a0d3 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, |