From dee544645b29235e0a5fb8e6d5f49ecc4e4915ca Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 9 Mar 2012 18:24:14 +0000 Subject: [PATCH] wayland: Fix some missing includes The commit 90e5088 added some extra compiler warning options that were triggering warnings when enabling the wayland build due to missing header includes. This adds those header includes in. Reviewed-by: Robert Bragg Reviewed-by: Emmanuele Bassi --- clutter/clutter-backend.c | 4 ++++ clutter/evdev/clutter-device-manager-evdev.c | 1 + clutter/wayland/clutter-event-wayland.c | 1 + clutter/wayland/clutter-input-device-wayland.c | 1 + clutter/wayland/clutter-stage-wayland.c | 1 + 5 files changed, 8 insertions(+) diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c index 0bfe4e349..8ce7c0ed9 100644 --- a/clutter/clutter-backend.c +++ b/clutter/clutter-backend.c @@ -55,6 +55,10 @@ #include "clutter-stage-window.h" #include "clutter-version.h" +#ifdef HAVE_CLUTTER_WAYLAND_COMPOSITOR +#include "wayland/clutter-wayland-compositor.h" +#endif /* HAVE_CLUTTER_WAYLAND_COMPOSITOR */ + #include #ifdef CLUTTER_INPUT_X11 diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c index 8b6f6f498..d3eb8e20f 100644 --- a/clutter/evdev/clutter-device-manager-evdev.c +++ b/clutter/evdev/clutter-device-manager-evdev.c @@ -47,6 +47,7 @@ #include "clutter-stage-manager.h" #include "clutter-xkb-utils.h" #include "clutter-backend-private.h" +#include "clutter-evdev.h" #include "clutter-device-manager-evdev.h" diff --git a/clutter/wayland/clutter-event-wayland.c b/clutter/wayland/clutter-event-wayland.c index 6067b21d7..7e5e8f94a 100644 --- a/clutter/wayland/clutter-event-wayland.c +++ b/clutter/wayland/clutter-event-wayland.c @@ -34,6 +34,7 @@ #include "../clutter-event.h" #include "../clutter-main.h" +#include "clutter-event-wayland.h" typedef struct _ClutterEventSourceWayland { diff --git a/clutter/wayland/clutter-input-device-wayland.c b/clutter/wayland/clutter-input-device-wayland.c index f0d822cce..c15d5a7bc 100644 --- a/clutter/wayland/clutter-input-device-wayland.c +++ b/clutter/wayland/clutter-input-device-wayland.c @@ -41,6 +41,7 @@ #include "clutter-input-device-wayland.h" #include "clutter-backend-wayland.h" #include "clutter-stage-private.h" +#include "clutter-wayland.h" #include "cogl/clutter-stage-cogl.h" diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c index 9cd83d61e..daa78c4c3 100644 --- a/clutter/wayland/clutter-stage-wayland.c +++ b/clutter/wayland/clutter-stage-wayland.c @@ -36,6 +36,7 @@ #include "clutter-stage-window.h" #include "clutter-stage-private.h" #include "clutter-event-private.h" +#include "clutter-wayland.h" #include #include