[Spice-devel] [PATCH spice-gtk] usb-device-manager: Avoid error when compiling with --disable-usbredir

Pavel Grunt pgrunt at redhat.com
Mon Jun 8 04:44:10 PDT 2015


---
 gtk/usb-device-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/usb-device-manager.c b/gtk/usb-device-manager.c
index d700dcd..12ad4ba 100644
--- a/gtk/usb-device-manager.c
+++ b/gtk/usb-device-manager.c
@@ -230,9 +230,9 @@ static gboolean spice_usb_device_manager_initable_init(GInitable  *initable,
                                                        GCancellable  *cancellable,
                                                        GError        **err)
 {
+#ifdef USE_USBREDIR
     SpiceUsbDeviceManager *self = SPICE_USB_DEVICE_MANAGER(initable);
     SpiceUsbDeviceManagerPrivate *priv = self->priv;
-#ifdef USE_USBREDIR
     GList *list;
     GList *it;
     int rc;
-- 
2.4.3



More information about the Spice-devel mailing list