From 9140b47fe370f95878a7599957394bd2dd83da8f Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 22 Jan 2015 15:48:31 +0100 Subject: [PATCH] common: Fix build on non-Linux systems Only define HAVE_WAYLAND when GDK_WINDOWING_WAYLAND is defined. https://bugzilla.gnome.org/show_bug.cgi?id=743266 --- panels/common/gnome-settings-bus.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panels/common/gnome-settings-bus.h b/panels/common/gnome-settings-bus.h index 0698f01ef..ce58f5805 100644 --- a/panels/common/gnome-settings-bus.h +++ b/panels/common/gnome-settings-bus.h @@ -3,6 +3,8 @@ #include +#ifdef GDK_WINDOWING_WAYLAND + #define HAVE_WAYLAND 1 static inline gboolean @@ -10,3 +12,5 @@ gnome_settings_is_wayland (void) { return !GDK_IS_X11_DISPLAY (gdk_display_get_default ()); } + +#endif /* GDK_WINDOWING_WAYLAND */