aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-05-25 15:06:42 +0100
committerJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-05-25 18:54:21 +0100
commitea424f881f0d88a1e8dd949d67421a2cf9d3fcc7 (patch)
treed150b8b5a97486d8d0fab65a48e9b63da749e99b /epan/epan.c
parentd0717c151a1413ac0e7b182f3d63345f357db7d0 (diff)
epan: Add c-ares version
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 2de8dbc137..25adf70cf1 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -72,7 +72,7 @@
#include <smi.h>
#endif
-#include <ares_version.h>
+#include <ares.h>
#ifdef HAVE_LZ4
#include <lz4.h>
@@ -756,9 +756,6 @@ epan_get_compiled_version_info(GString *str)
g_string_append(str, ", without SMI");
#endif /* _SMI_H */
- /* c-ares */
- g_string_append(str, ", with c-ares " ARES_VERSION_STR);
-
/* LUA */
#ifdef HAVE_LUA
g_string_append(str, ", with " LUA_RELEASE);
@@ -849,6 +846,9 @@ epan_get_compiled_version_info(GString *str)
void
epan_get_runtime_version_info(GString *str)
{
+ /* c-ares */
+ g_string_append_printf(str, ", with c-ares %s", ares_version(NULL));
+
/* GnuTLS */
#ifdef HAVE_LIBGNUTLS
g_string_append_printf(str, ", with GnuTLS %s", gnutls_check_version(NULL));