[patch/RFA] coffcode.h needs to include libiberty.h

Eli Zaretskii
2009-09-05T15:53:52Z

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