[PATCH] bfd: add stdlib.h when using abort

Mike Frysinger vapier@gentoo.org
Mon Apr 19 01:19:24 GMT 2021


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"
-- 
2.30.2



More information about the Binutils mailing list