diff options
author | Kevin Butler <haqkrs@gmail.com> | 2013-09-01 17:38:01 +0100 |
---|---|---|
committer | Kevin Butler <haqkrs@gmail.com> | 2013-09-01 17:38:01 +0100 |
commit | 6e17fa6d7ba57b990dd929e07969d35dc82fc46b (patch) | |
tree | cb6d7b7e79941df0dec6b7379821c6e8f2cbebe8 /src/common/compat_libevent.c | |
parent | 00bcc25d05dc0273323a2cae20c6aa62afd4b50a (diff) | |
download | tor-6e17fa6d7ba57b990dd929e07969d35dc82fc46b.tar.gz tor-6e17fa6d7ba57b990dd929e07969d35dc82fc46b.zip |
Added --library-versions flag to print the compile time and runtime versions of libevent, openssl and zlib. Partially implements #6384.
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r-- | src/common/compat_libevent.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index 200a7c65fb..4d0fff833b 100644 --- a/src/common/compat_libevent.c +++ b/src/common/compat_libevent.c @@ -415,6 +415,14 @@ tor_check_libevent_version(const char *m, int server, #define HEADER_VERSION _EVENT_VERSION #endif +/** Return a string representation of the version of Libevent that was used +* at compilation time. */ +const char * +tor_libevent_get_header_version_str(void) +{ + return HEADER_VERSION; +} + /** See whether the headers we were built against differ from the library we * linked against so much that we're likely to crash. If so, warn the * user. */ |