From 866120e4e6e58c59e18dce044304d6504838b8df Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Mon, 2 Sep 2019 21:18:52 +0800 Subject: [PATCH] Fix compilation error if missing libsvn oops forgot the case if the lib is not installed --- hydra-svn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hydra-svn.c b/hydra-svn.c index 4f4b79f..91d8503 100644 --- a/hydra-svn.c +++ b/hydra-svn.c @@ -227,12 +227,14 @@ int32_t service_svn_init(char *ip, int32_t sp, unsigned char options, char *misc // 0 all OK // -1 error, hydra will exit, so print a good error message here +#ifdef LIBSVN if (verbose) hydra_report(stderr, "[VERBOSE] detected subversion library v%d.%d\n", SVN_VER_MAJOR, SVN_VER_MINOR); if (SVN_VER_MAJOR != 1 && SVN_VER_MINOR >= 5) { hydra_report(stderr, "[ERROR] unsupported subversion library v%d.%d, exiting!\n", SVN_VER_MAJOR, SVN_VER_MINOR); return -1; } +#endif return 0; }