[gnome-settings-daemon/wip/lantw/fix-non-wayland-build: 5/5] common: Fix build with wayland disabled on FreeBSD
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/lantw/fix-non-wayland-build: 5/5] common: Fix build with wayland disabled on FreeBSD
- Date: Wed, 20 Jun 2018 15:42:06 +0000 (UTC)
commit 34199fa54641abae15199a311002ac726f47aa89
Author: Ting-Wei Lan <lantw src gnome org>
Date: Fri Jun 15 23:05:01 2018 +0800
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.
plugins/common/gsd-device-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]