[Spice-devel] [PATCH spice-gtk] Include gdk/gdkwayland.h anytime GDK_WINDOWING_WAYLAND is defined.

Jeremy White jwhite at codeweavers.com
Tue Mar 22 14:14:25 UTC 2016


A specific GTK version check is not appropriate for this particular include.
This fixes compilation on Debian Jessie.

Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 src/spice-widget-egl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
index a9bea52..883983e 100644
--- a/src/spice-widget-egl.c
+++ b/src/spice-widget-egl.c
@@ -29,7 +29,7 @@
 #include <libdrm/drm_fourcc.h>
 
 #include <gdk/gdkx.h>
-#if GTK_CHECK_VERSION(3,16,0)
+#ifdef GDK_WINDOWING_WAYLAND
 #include <gdk/gdkwayland.h>
 #endif
 
-- 
2.1.4



More information about the Spice-devel mailing list