]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
Update the manpage.
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index 25429b3e3d85c60ccb54276e2b4e33203c6edd9a..3ecb3194e2aa0c19060e39ff1288bc8eefb1e19b 100644 (file)
--- a/show.c
+++ b/show.c
@@ -18,7 +18,6 @@
  */
 
 #include "sigrok-cli.h"
-#include "config.h"
 #include <glib.h>
 #include <string.h>
 
@@ -46,12 +45,14 @@ static gint sort_drivers(gconstpointer a, gconstpointer b)
        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);
 }
+#endif
 
 void show_version(void)
 {