ecoreodrm - fix build if systemd is not enabled

This commit is contained in:
Carsten Haitzler 2014-12-10 08:54:02 +09:00
parent b2aa9eff9c
commit 407f7bbb0b
1 changed files with 2 additions and 0 deletions

View File

@ -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))