This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch/RFA] coffcode.h needs to include libiberty.h
- From: Eli Zaretskii <eliz at gnu dot org>
- To: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Sat, 05 Sep 2009 18:51:37 +0300
- Subject: [patch/RFA] coffcode.h needs to include libiberty.h
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
The following patch is needed to prevent compiler warnings during the
DJGPP build of GDB. DJGPP does not have snprintf in its library and
headers, and uses the libiberty version, so the compiler complains
about its implicit declaration.
If this patch is okay, please somebody commit it, as I don't have
write access to the BFD repository.
Thanks.
2009-09-05 Eli Zaretskii <eliz@gnu.org>
* coffcode.h: Include libiberty.h.
--- bfd/coffcode.h~0 2009-08-11 00:56:42.000000000 +0300
+++ bfd/coffcode.h 2009-09-05 16:41:25.953125000 +0300
@@ -361,6 +361,8 @@
*/
+#include "libiberty.h"
+
#ifdef COFF_WITH_PE
#include "peicode.h"
#else