forked from enlightenment/efl
ecoreodrm - fix build if systemd is not enabled
This commit is contained in:
parent
b2aa9eff9c
commit
407f7bbb0b
|
@ -247,8 +247,10 @@ _ecore_drm_logind_vt_close(Ecore_Drm_Device *dev)
|
|||
Eina_Bool
|
||||
_ecore_drm_logind_connect(Ecore_Drm_Device *dev)
|
||||
{
|
||||
#ifdef HAVE_SYSTEMD
|
||||
/* get sd-login properties we need */
|
||||
if (sd_pid_get_session(getpid(), &sid) < 0) return EINA_FALSE;
|
||||
#endif
|
||||
|
||||
/* try to init dbus */
|
||||
if (!_ecore_drm_dbus_init(sid))
|
||||
|
|
Loading…
Reference in New Issue