From af64cc9fe7244eeec543c7c22adecef3a402d02a Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Thu, 22 Nov 2012 16:19:14 -0500 Subject: Auto-detect whether to build systemd support --- src/gpm-manager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gpm-manager.c') 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 { -- cgit v1.2.1