mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
build: Fix zlib support.
This commit is contained in:
committed by
Aris Adamantiadis
parent
43fc7553f8
commit
6859e4f4ec
@@ -80,10 +80,10 @@
|
||||
#define CRYPTO_STRING ""
|
||||
#endif
|
||||
|
||||
#ifdef WITH_LIBZ
|
||||
#define LIBZ_STRING "/zlib"
|
||||
#ifdef WITH_ZLIB
|
||||
#define ZLIB_STRING "/zlib"
|
||||
#else
|
||||
#define LIBZ_STRING ""
|
||||
#define ZLIB_STRING ""
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -357,7 +357,7 @@ char *ssh_hostport(const char *host, int port){
|
||||
const char *ssh_version(int req_version) {
|
||||
if (req_version <= LIBSSH_VERSION_INT) {
|
||||
return SSH_STRINGIFY(LIBSSH_VERSION) GCRYPT_STRING CRYPTO_STRING
|
||||
LIBZ_STRING;
|
||||
ZLIB_STRING;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user