[PATCH] rdp-compositor: fix compilation against last FreeRDP 2.0

Hardening rdp.effort at gmail.com
Sun May 27 21:59:46 UTC 2018


Le 25/05/2018 à 16:17, Pekka Paalanen a écrit :
> On Thu, 24 May 2018 14:55:20 +0200
> David Fort <rdp.effort at gmail.com> wrote:
> 
>> The SURFACE_BITS_COMMAND struct has changed and some members have been moved in the
>> bmp field.
>> ---
>>  configure.ac               |  5 ++-

[...]

>>  
> 
> Hi,
> 
> with freerdp-2.0.0_rc1, this results in the following and tons more:
> 
> /home/pq/git/weston/libweston/compositor-rdp.c: In function ‘rdp_peer_refresh_rfx’:
> /home/pq/git/weston/libweston/compositor-rdp.c:70:29: error: ‘SURFACE_BITS_COMMAND {aka struct _SURFACE_BITS_COMMAND}’ has no member named ‘bmp’; did you mean ‘bpp’?
>  #define SURFACE_BPP(cmd) cmd->bmp.bpp
>                              ^
> /home/pq/git/weston/libweston/compositor-rdp.c:219:2: note: in expansion of macro ‘SURFACE_BPP’
>   SURFACE_BPP(cmd) = 32;
> 
> 
> However, configure says:
> 
> checking for SURFACE_BITS_COMMAND.bmp... no
> 
> 
> But config.h contains:
> 
> /* SURFACE_BITS_CMD has bmp field */
> #define HAVE_SURFACE_BITS_BMP $have_bmp
> 
> So, something to fix. :-)
> 

Hi Pekka,
the new version should works with older versions.

Best regards.

-- 
David FORT
website: http://www.hardening-consulting.com/



More information about the wayland-devel mailing list