]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
Fix build when using --without-libsigrokdecode.
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index c93a6be4c8c397bf7096857880bb17b9c6963f3e..9491110bdcfdbb82d1c0f469a02e47d043fb0875 100644 (file)
--- a/show.c
+++ b/show.c
@@ -94,6 +94,7 @@ void show_version(void)
        printf("  - SCPI backends: %s.\n", str);
        g_free(str);
 
        printf("  - SCPI backends: %s.\n", str);
        g_free(str);
 
+#ifdef HAVE_SRD
        printf("- libsigrokdecode %s/%s (rt: %s/%s).\n",
                SRD_PACKAGE_VERSION_STRING, SRD_LIB_VERSION_STRING,
                srd_package_version_string_get(), srd_lib_version_string_get());
        printf("- libsigrokdecode %s/%s (rt: %s/%s).\n",
                SRD_PACKAGE_VERSION_STRING, SRD_LIB_VERSION_STRING,
                srd_package_version_string_get(), srd_lib_version_string_get());
@@ -116,6 +117,7 @@ void show_version(void)
        str = srd_buildinfo_host_get();
        printf("  - Host: %s.\n", str);
        g_free(str);
        str = srd_buildinfo_host_get();
        printf("  - Host: %s.\n", str);
        g_free(str);
+#endif
 }
 
 void show_supported(void)
 }
 
 void show_supported(void)