bfd: add stdlib.h when using abort
authorMike Frysinger <vapier@gentoo.org>
Mon, 19 Apr 2021 01:18:11 +0000 (21:18 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 27 Apr 2021 01:02:38 +0000 (21:02 -0400)
Since this file calls abort() now, we need to include stdlib.h for
its prototype.

bfd/ChangeLog
bfd/elf-bfd.h

index 45397ef04b9a4f60ffee17ffb7af4102819db050..721fddc935d23652aca9cc7931c240da0dfc29e4 100644 (file)
@@ -1,3 +1,7 @@
+2021-04-26  Mike Frysinger  <vapier@gentoo.org>
+
+       * elf-bfd.h: Include stdlib.h.
+
 2021-04-26  Jan Beulich  <jbeulich@suse.com>
 
        * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
index 5a2f64233f9c727facb5445e6c8f0afebe04c5de..fb2683724e11b371a9075ea25799927790ada2aa 100644 (file)
@@ -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"