From 7b0fd39db21a9291b4189d6e5b05ade40b3dce58 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 Mar 2022 17:47:22 +0100 Subject: [PATCH] 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 --- lib/vssh/libssh.c | 7 +++++++ 1 file changed, 7 insertions(+) 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,