aboutsummaryrefslogtreecommitdiff
path: root/src/device-menu-mgr.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-23 08:40:17 -0600
committerTed Gould <ted@gould.cx>2012-02-23 08:40:17 -0600
commit68cf3cfad3861048d620b2486abf47d5a3ce2886 (patch)
tree566ec00ae60a0734ada9ac2210ce1708ea6d8c4e /src/device-menu-mgr.c
parent76e3d09219f1dd4f7dcb1e99dcaec562ff7cdcaf (diff)
downloadayatana-indicator-session-68cf3cfad3861048d620b2486abf47d5a3ce2886.tar.gz
ayatana-indicator-session-68cf3cfad3861048d620b2486abf47d5a3ce2886.tar.bz2
ayatana-indicator-session-68cf3cfad3861048d620b2486abf47d5a3ce2886.zip
Don't include the header or the variable if we're not using GUDev
Diffstat (limited to 'src/device-menu-mgr.c')
-rw-r--r--src/device-menu-mgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c
index 8e0713e..cfdb55d 100644
--- a/src/device-menu-mgr.c
+++ b/src/device-menu-mgr.c
@@ -31,7 +31,9 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "apt-watcher.h"
#endif /* HAVE_APT */
+#ifdef HAS_GUDEV
#include "udev-mgr.h"
+#endif /* HAS_GUDEV */
#define UP_ADDRESS "org.freedesktop.UPower"
#define UP_OBJECT "/org/freedesktop/UPower"
@@ -47,7 +49,9 @@ struct _DeviceMenuMgr
#ifdef HAVE_APT
AptWatcher* apt_watcher;
#endif /* HAVE_APT */
+#ifdef HAS_GUDEV
UdevMgr* udev_mgr;
+#endif /* HAS_GUDEV */
};
static GSettings *lockdown_settings = NULL;