[PATCH] Include <string.h> to dis-asm.h to get strchr declaration

Simon Marchi simon.marchi@polymtl.ca
Mon Jan 14 21:45:00 GMT 2019


On 2019-01-11 04:47, Павел Крюков wrote:
> Include <string.h> to dis-asm.h to get strchr declaration
> 
> include/Changelog:
> 2019-01-11  Pavel I. Kryukov  <kryukov@frtk.ru>
> 
>         * dis-asm.h: include <string.h>
> 
> diff --git a/include/dis-asm.h b/include/dis-asm.h
> index 77b9e61..02c7214 100644
> --- a/include/dis-asm.h
> +++ b/include/dis-asm.h
> @@ -32,6 +32,7 @@ extern "C" {
>  #endif
> 
>  #include <stdio.h>
> +#include <string.h>
>  #include "bfd.h"
> 
>    typedef int (*fprintf_ftype) (void *, const char*, ...)
> ATTRIBUTE_FPTR_PRINTF_2;

[Adding binutils@ in CC.]

I took the liberty of pushing this patch which touches code in include/, 
since it seemed obvious enough to me.

Simon



More information about the Gdb-patches mailing list