Na, that's a proper fix. Read the ecore_drm_logind.h header. It does not 
include the systemd/sd-login.h header unles HAVE_SYSTEMD_LOGIN is defined.

Cheers,
dh

On 12/09/2014 07:42 PM, Cedric BAIL wrote:
> 2014-12-10 1:02 GMT+01:00 Carsten Haitzler <[email protected]>:
>> raster pushed a commit to branch master.
>>
>> http://git.enlightenment.org/core/efl.git/commit/?id=407f7bbb0b985c1083c71628dd08b0347f99a0aa
>>
>> commit 407f7bbb0b985c1083c71628dd08b0347f99a0aa
>> Author: Carsten Haitzler (Rasterman) <[email protected]>
>> Date:   Wed Dec 10 08:54:02 2014 +0900
>>
>>      ecoreodrm - fix build if systemd is not enabled
>
> Ah ah ah ! I think the proper fix is to disable ecore_drm if there is
> no systemd. :-)
>
>> ---
>>   src/lib/ecore_drm/ecore_drm_logind.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/src/lib/ecore_drm/ecore_drm_logind.c 
>> b/src/lib/ecore_drm/ecore_drm_logind.c
>> index a3c6c1e..c22f113 100644
>> --- a/src/lib/ecore_drm/ecore_drm_logind.c
>> +++ b/src/lib/ecore_drm/ecore_drm_logind.c
>> @@ -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))
>>
>> --
>>
>>
>>
>
>
>


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to