summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-11-14 11:19:47 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-11-14 13:37:21 +0000
commite0a6ca62acb2d2e46304a9ce6b1dcb41e0534587 (patch)
treebf1906cfc0a4bd682318257ae58374fc8f11baf6
parent8b47fe9ef4fd152b87f1e94566c0ed147ffbe812 (diff)
usb: Allow to compile if LZ4 is disabled
spice_usbredir_channel_get_spice_usb_device is used only if LZ4 is enabled so avoid to define if not used as this cause a compile error. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
-rw-r--r--src/channel-usbredir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channel-usbredir.c b/src/channel-usbredir.c
index 94a5050..add7d5e 100644
--- a/src/channel-usbredir.c
+++ b/src/channel-usbredir.c
@@ -544,11 +544,13 @@ void spice_usbredir_channel_disconnect_device_async(SpiceUsbredirChannel *channe
g_object_unref(task);
}
+#ifdef USE_LZ4
static SpiceUsbDevice *
spice_usbredir_channel_get_spice_usb_device(SpiceUsbredirChannel *channel)
{
return channel->priv->spice_device;
}
+#endif
G_GNUC_INTERNAL
libusb_device *spice_usbredir_channel_get_device(SpiceUsbredirChannel *channel)