[prev in list] [next in list] [prev in thread] [next in thread]
List: binutils-cvs
Subject: [binutils-gdb] bfd: add stdlib.h when using abort
From: Michael Frysinger via Binutils-cvs <binutils-cvs () sourceware ! org>
Date: 2021-04-27 1:03:12
Message-ID: 20210427010312.CBBD53846078 () sourceware ! org
[Download RAW message or body]
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3955e3467074a3a6cc243f2af5a29e17aa08ab4e
commit 3955e3467074a3a6cc243f2af5a29e17aa08ab4e
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sun Apr 18 21:18:11 2021 -0400
bfd: add stdlib.h when using abort
Since this file calls abort() now, we need to include stdlib.h for
its prototype.
Diff:
---
bfd/ChangeLog | 4 ++++
bfd/elf-bfd.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 45397ef04b9..721fddc935d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 5a2f64233f9..fb2683724e1 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"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic