From 64afce95a1554bda20c73cd510758960aa9a465b Mon Sep 17 00:00:00 2001 From: Leonid Evdokimov Date: Thu, 17 Mar 2016 17:07:42 +0300 Subject: [PATCH] Add libevent version to `redsocks -v` output --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.c b/main.c index c9ac20a7..9d402971 100644 --- a/main.c +++ b/main.c @@ -72,6 +72,13 @@ int main(int argc, char **argv) break; case 'v': puts(redsocks_version); + printf("Built with libevent-%s\n", LIBEVENT_VERSION); + printf("Runs with libevent-%s\n", event_get_version()); + if (LIBEVENT_VERSION_NUMBER != event_get_version_number()) { + printf("Warning: libevent version number mismatch.\n" + " Headers: %8x\n" + " Runtime: %8x\n", LIBEVENT_VERSION_NUMBER, event_get_version_number()); + } return EXIT_SUCCESS; default: printf(