]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
Fix compile without decoding support.
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index 9adee6792098d066e8f9c84e61db5bf23cd2679d..3ecb3194e2aa0c19060e39ff1288bc8eefb1e19b 100644 (file)
--- a/show.c
+++ b/show.c
@@ -45,12 +45,14 @@ static gint sort_drivers(gconstpointer a, gconstpointer b)
        return strcmp(sdda->name, sddb->name);
 }
 
        return strcmp(sdda->name, sddb->name);
 }
 
+#ifdef HAVE_SRD
 static gint sort_pds(gconstpointer a, gconstpointer b)
 {
        const struct srd_decoder *sda = a, *sdb = b;
 
        return strcmp(sda->id, sdb->id);
 }
 static gint sort_pds(gconstpointer a, gconstpointer b)
 {
        const struct srd_decoder *sda = a, *sdb = b;
 
        return strcmp(sda->id, sdb->id);
 }
+#endif
 
 void show_version(void)
 {
 
 void show_version(void)
 {