[Spice-devel] [spice-gtk] usb: Allow to compile if LZ4 is disabled

Victor Toso victortoso at redhat.com
Mon Nov 14 13:27:28 UTC 2016


Hi,

On Mon, Nov 14, 2016 at 11:20:31AM +0000, Frediano Ziglio wrote:
> 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 at redhat.com>
Acked-by: Victor Toso <victortoso at redhat.com>

> ---
>  src/channel-usbredir.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> 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)
> -- 
> 2.7.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161114/2fcd8e3d/attachment.sig>


More information about the Spice-devel mailing list