summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2018-06-15 23:05:01 +0800
committerCarlos Garnacho <mrgarnacho@gmail.com>2018-06-20 15:41:37 +0000
commit34199fa54641abae15199a311002ac726f47aa89 (patch)
treec2fcc9a441e4a491bd5adf277b0ff89bb0e42c16
parent244b9f02e4b78565671bdc96eb3b6a1d9d53e3a0 (diff)
downloadgnome-settings-daemon-34199fa54641abae15199a311002ac726f47aa89.tar.gz
common: Fix build with wayland disabled on FreeBSD
HAVE_WAYLAND is always defined. We should check whether it is set to a non-zero value instead of checking whether it is defined.
-rw-r--r--plugins/common/gsd-device-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/common/gsd-device-manager.c b/plugins/common/gsd-device-manager.c
index 541f2948..ff72ad69 100644
--- a/plugins/common/gsd-device-manager.c
+++ b/plugins/common/gsd-device-manager.c
@@ -275,7 +275,7 @@ gsd_device_manager_get (void)
manager = g_object_get_data (G_OBJECT (screen), "gsd-device-manager-data");
if (!manager) {
-#ifdef HAVE_WAYLAND
+#if HAVE_WAYLAND
if (gnome_settings_is_wayland ()) {
manager = g_object_new (GSD_TYPE_UDEV_DEVICE_MANAGER,
NULL);