(show_version): display version of libssh2.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2022-02-23 15:13:45 +03:00
parent bb42ed706c
commit 2101026d4c
1 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,10 @@
#include <stdio.h>
#include <sys/types.h>
#if defined (ENABLE_VFS) && defined(ENABLE_VFS_SFTP)
#include <libssh2.h>
#endif /* ENABLE_VFS_SFTP && ENABLE_VFS */
#include "lib/global.h"
#include "lib/fileloc.h"
#include "lib/mcconfig.h"
@ -158,6 +162,11 @@ show_version (void)
#error "Cannot compile mc without S-Lang or ncurses"
#endif /* !HAVE_SLANG && !USE_NCURSES */
#if defined (ENABLE_VFS) && defined(ENABLE_VFS_SFTP)
printf (_("Built with libssh2 %d.%d.%d\n"),
LIBSSH2_VERSION_MAJOR, LIBSSH2_VERSION_MINOR, LIBSSH2_VERSION_PATCH);
#endif /* ENABLE_VFS_SFTP && ENABLE_VFS */
for (i = 0; features[i] != NULL; i++)
puts (_(features[i]));