Fix compile without decoding support.
authorBert Vermeulen <bert@biot.com>
Sat, 26 Apr 2014 19:11:16 +0000 (12:11 -0700)
committerBert Vermeulen <bert@biot.com>
Sat, 26 Apr 2014 19:11:16 +0000 (12:11 -0700)
This fixes bug 351.

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);
 }
 
+#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)
 {