mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 15:00:10 +01:00
core: fix session-monitor build with --with-session-tracking=none
This commit is contained in:
parent
41c87eb363
commit
81affd4ff1
1 changed files with 2 additions and 0 deletions
|
|
@ -372,7 +372,9 @@ nm_session_monitor_user_to_uid (const char *user, uid_t *out_uid)
|
|||
gboolean
|
||||
nm_session_monitor_session_exists (uid_t uid, gboolean active)
|
||||
{
|
||||
#if defined(SESSION_TRACKING_SYSTEMD) || defined(SESSION_TRACKING_CONSOLEKIT)
|
||||
NMSessionMonitor *monitor = nm_session_monitor_get ();
|
||||
#endif
|
||||
|
||||
#ifdef SESSION_TRACKING_SYSTEMD
|
||||
if (sd_session_exists (monitor, uid, active))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue