From 1dae1b7638b1fc7ff1dcb7c3af50593badefa69c Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Fri, 23 Jul 2021 15:17:37 +0200
Subject: [PATCH] fixed error in non-SOAPY compilations

---
 new_menu.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/new_menu.c b/new_menu.c
index 4da1fbf..4eebec4 100644
--- a/new_menu.c
+++ b/new_menu.c
@@ -495,7 +495,10 @@ void new_menu()
     // This may help to recover from certain error conditions
     // At the moment I do not know how to do this for SOAPY
     //
-    if (protocol != SOAPYSDR_PROTOCOL) {
+#ifdef SOAPYSDR
+    if (protocol != SOAPYSDR_PROTOCOL)
+#endif
+    {
       GtkWidget *restart_b=gtk_button_new_with_label("Restart");
       g_signal_connect (restart_b, "button-press-event", G_CALLBACK(restart_cb), NULL);
       gtk_grid_attach(GTK_GRID(grid),restart_b,2,0,2,1);
-- 
2.45.2