summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-22 13:32:35 -0800
committerStefano Karapetsas <[email protected]>2012-11-22 13:32:35 -0800
commit0415b57493898c5defa2719d67115f8ff2392904 (patch)
tree68b492c94b408a6efccc50cb16b907ad07d6979b /src/gpm-manager.c
parent433b548ea199a66afbb5fc874bfdaa31695c1e3c (diff)
parentaf64cc9fe7244eeec543c7c22adecef3a402d02a (diff)
downloadmate-power-manager-0415b57493898c5defa2719d67115f8ff2392904.tar.bz2
mate-power-manager-0415b57493898c5defa2719d67115f8ff2392904.tar.xz
Merge pull request #38 from bhull2010/master
Auto-detect whether to build systemd support
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index c6f4d79..f1be5d8 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -100,8 +100,10 @@ struct GpmManagerPrivate
NotifyNotification *notification_warning_low;
NotifyNotification *notification_discharging;
NotifyNotification *notification_fully_charged;
- gint32 systemd_inhibit;
- GDBusProxy *systemd_inhibit_proxy;
+#ifdef WITH_SYSTEMD_INHIBIT
+ gint32 systemd_inhibit;
+ GDBusProxy *systemd_inhibit_proxy;
+#endif
};
typedef enum {