aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/protocol_ssh.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/protocol_ssh.c b/src/protocol_ssh.c
index 079d148..f04218e 100644
--- a/src/protocol_ssh.c
+++ b/src/protocol_ssh.c
@@ -62,9 +62,14 @@
#include "utils.h"
#include "log.h"
-#if LIBSSH_VERSION_MAJOR != 0 || LIBSSH_VERSION_MINOR < 7 || \
- LIBSSH_VERSION_MICRO < 3
-#pragma message "Unsupported libssh version < 0.7.3"
+#if LIBSSH_VERSION_MAJOR == 0
+#if LIBSSH_VERSION_MINOR < 7
+#pragma message "Unsupported libssh version < 0.7.x"
+#elif LIBSSH_VERSION_MINOR > 7
+#pragma message "Unsupported libssh version > 0.7.x"
+#endif
+#else
+#error "Unsupported libssh version 1.x.x, this software WONT work"
#endif
#define CACHE_MAX 32
#define CACHE_TIME (60 * 20) /* max cache time 20 minutes */