Re: [PATCH] gdb: Fix build failure in xml-tdesc.c without expat.

Pedro Alves
2016-02-12T10:19:42Z

On 02/12/2016 10:09 AM, Marcin KoÅ›cielnicki wrote:
> Introduced by 18d3cec54e1b4fce278dba436484846f8048d7d6.
>
> gdb/ChangeLog:
>
> * xml-tdesc.c (target_fetch_description_xml): Warn and return NULL
> when built without expat.
> ---
> How about that?

There's a standard CL format for conditionally compiled code:

* xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
and return NULL.

OK with that change.

Thanks,
Pedro Alves