[Spice-devel] [PATCH spice-gtk] usb-device-manager: fix compilation error when usbredir is disabled
Yonit Halperin
yhalperi at redhat.com
Tue Aug 6 13:29:16 PDT 2013
---
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 0535609..71d3462 100644
--- a/gtk/usb-device-manager.c
+++ b/gtk/usb-device-manager.c
@@ -329,10 +329,10 @@ static gboolean spice_usb_device_manager_initable_init(GInitable *initable,
static void spice_usb_device_manager_dispose(GObject *gobject)
{
+#ifdef USE_USBREDIR
SpiceUsbDeviceManager *self = SPICE_USB_DEVICE_MANAGER(gobject);
SpiceUsbDeviceManagerPrivate *priv = self->priv;
-#ifdef USE_USBREDIR
#ifdef USE_LIBUSB_HOTPLUG
if (priv->hp_handle) {
spice_usb_device_manager_stop_event_listening(self);
--
1.8.1.4
More information about the Spice-devel
mailing list