aboutsummaryrefslogtreecommitdiff
path: root/src/device-menu-mgr.c
diff options
context:
space:
mode:
authorEvgeni Golov <evgeni@debian.org>2012-02-23 00:20:15 +0100
committerEvgeni Golov <evgeni@debian.org>2012-02-23 00:20:15 +0100
commit05f7c359ae59cbcf9890dddf27dd4362269459c8 (patch)
treec722805bbfa2a3e405d5aaf538f87840b3112546 /src/device-menu-mgr.c
parent13d6c2bd152c5c9de79537f541f687e3dcd8ba7b (diff)
downloadayatana-indicator-session-05f7c359ae59cbcf9890dddf27dd4362269459c8.tar.gz
ayatana-indicator-session-05f7c359ae59cbcf9890dddf27dd4362269459c8.tar.bz2
ayatana-indicator-session-05f7c359ae59cbcf9890dddf27dd4362269459c8.zip
make gudev dep optional
Debian has arches w/o udev (hurd-*, kfreebsd-*). These cannot build indicator-session currently because libgudev-1.0-dev is missing there. Make the gudev dep optional and thus make indicator-session buildable on non-Linux arches again.
Diffstat (limited to 'src/device-menu-mgr.c')
-rw-r--r--src/device-menu-mgr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c
index f8f0696..8e0713e 100644
--- a/src/device-menu-mgr.c
+++ b/src/device-menu-mgr.c
@@ -733,8 +733,10 @@ device_menu_mgr_build_static_items (DeviceMenuMgr* self, gboolean greeter_mode)
restart_shutdown_logout_mi->shutdown_mi = shutdown_mi;
update_menu_entries(restart_shutdown_logout_mi);
+#ifdef HAS_GUDEV
// Time to create the udev mgr and hand it the static relevant items.
self->udev_mgr = udev_mgr_new (scanners_menuitem, webcam_menuitem);
+#endif
}
static void