common: Fix build by providing dummy header

https://bugzilla.gnome.org/show_bug.cgi?id=743266
This commit is contained in:
Bastien Nocera 2015-01-21 13:07:45 +01:00 committed by Rui Matos
parent 1be3811717
commit 3c41d02b09
2 changed files with 14 additions and 1 deletions

View file

@ -52,7 +52,8 @@ libdevice_la_SOURCES = \
gsd-device-manager.c \
gsd-device-manager.h \
gsd-device-manager-x11.c \
gsd-device-manager-x11.h
gsd-device-manager-x11.h \
gnome-settings-bus.h
libdevice_la_LIBADD = \
$(DEVICES_LIBS)

View file

@ -0,0 +1,12 @@
/* Stub to replace gnome-settings-daemon's
* gnome-settings-bus.h helpers */
#include <gdk/gdkx.h>
#define HAVE_WAYLAND 1
static inline gboolean
gnome_settings_is_wayland (void)
{
return !GDK_IS_X11_DISPLAY (gdk_display_get_default ());
}