]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh: fix build with old libssh versions
authorDaniel Stenberg <daniel@haxx.se>
Thu, 10 Mar 2022 16:47:22 +0000 (17:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Mar 2022 18:52:13 +0000 (19:52 +0100)
... that don't have the SSH_S_* defines. Spotted on a machine using
libssh 0.7.3

Closes #8574

lib/vssh/libssh.c

index 9879161b643eba7b0fea726bd4894e9345c8c122..0d265a0d3ab797a3e4fd4354ba8b5224bc7fbaac 100644 (file)
   } 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,