[PATCH] bfd: add stdlib.h when using abort
Mike Frysinger
vapier@gentoo.org
Sat Apr 24 02:02:27 GMT 2021
On 18 Apr 2021 21:19, Mike Frysinger via Binutils wrote:
> Since this file calls abort() now, we need to include stdlib.h for
> its prototype.
> ---
> bfd/elf-bfd.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
> index 5a2f64233f9c..fb2683724e11 100644
> --- a/bfd/elf-bfd.h
> +++ b/bfd/elf-bfd.h
> @@ -22,6 +22,8 @@
> #ifndef _LIBELF_H_
> #define _LIBELF_H_ 1
>
> +#include <stdlib.h>
> +
> #include "elf/common.h"
> #include "elf/external.h"
> #include "elf/internal.h"
OK to merge now ?
-mike
More information about the Binutils
mailing list