]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Include protobuf-c version
authorPetr Menšík <pemensik@redhat.com>
Mon, 18 Nov 2019 21:14:20 +0000 (22:14 +0100)
committerMark Andrews <marka@isc.org>
Wed, 18 Dec 2019 00:31:43 +0000 (00:31 +0000)
Include used version of protobuf-c in version info, both link time and
runtime version is available.

(cherry picked from commit 85f3476894c6fa913bfc333b243b56d832f25848)

bin/named/main.c

index f9ffe53b39c34dc7fdc86560d06757875c33a875..e4e4d812612169fdb9240fcf856452339288a653 100644 (file)
@@ -522,6 +522,12 @@ OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0 or higher */
        /* Unfortunately, no version define on link time */
        printf("linked to maxminddb version: %s\n",
               MMDB_lib_version());
+#endif
+#if defined(HAVE_DNSTAP)
+       printf("compiled with protobuf-c version: %s\n",
+              PROTOBUF_C_VERSION);
+       printf("linked to protobuf-c version: %s\n",
+              protobuf_c_version());
 #endif
        printf("threads support is enabled\n\n");