Fix spice includes

Spice release version 0.31 requires that only spice-client.h or
spice-client-gtk.h should be included directly. As a result,
compilation is now throwing warnings like:

warning: #warning "Only <spice-client.h> can be included directly" [-Wcpp]
warning: #warning "Only <spice-client-gtk.h> can be included directly" [-Wcpp]

This patch also bumps spice version requirement to 0.31, to ensure
those files are available.

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
Eduardo Lima (Etrunko) 2016-03-22 11:45:25 -03:00 committed by Pavel Grunt
parent 3367285c37
commit e5239c7cbb
5 changed files with 5 additions and 10 deletions

View File

@ -24,7 +24,7 @@ LIBXML2_REQUIRED="2.6.0"
LIBVIRT_REQUIRED="0.10.0"
LIBVIRT_GLIB_REQUIRED="0.1.8"
GTK_VNC_REQUIRED="0.4.0"
SPICE_GTK_REQUIRED="0.30"
SPICE_GTK_REQUIRED="0.31"
SPICE_PROTOCOL_REQUIRED="0.12.7"
GOVIRT_REQUIRED="0.3.2"

View File

@ -25,7 +25,7 @@
#include <config.h>
#include <math.h>
#include <spice-audio.h>
#include <spice-client-gtk.h>
#include <glib/gi18n.h>

View File

@ -25,8 +25,7 @@
#define _VIRT_VIEWER_DISPLAY_SPICE_H
#include <glib-object.h>
#include <spice-widget.h>
#include <spice-audio.h>
#include <spice-client.h>
#include "virt-viewer-display.h"
#include "virt-viewer-session-spice.h"

View File

@ -24,12 +24,9 @@
#include <config.h>
#include <spice-audio.h>
#include <glib/gi18n.h>
#include <spice-option.h>
#include <spice-util.h>
#include <spice-client.h>
#include <spice-client-gtk.h>
#include <usb-device-widget.h>
#include "virt-viewer-file.h"

View File

@ -25,8 +25,7 @@
#define _VIRT_VIEWER_SESSION_SPICE_H
#include <glib-object.h>
#include <spice-widget.h>
#include <spice-audio.h>
#include <spice-client.h>
#include "virt-viewer-session.h"