Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: binutils@sourceware.org, gdb-patches@sourceware.org
Subject: [patch/RFA] coffcode.h needs to include libiberty.h
Date: Sat, 05 Sep 2009 15:53:00 -0000	[thread overview]
Message-ID: <83iqfx4cfq.fsf@gnu.org> (raw)

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


             reply	other threads:[~2009-09-05 15:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-05 15:53 Eli Zaretskii [this message]
2009-09-05 16:07 ` Joel Brobecker
2009-09-05 16:18   ` Eli Zaretskii
2009-09-05 16:26     ` Dave Korn
2009-09-05 16:40       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83iqfx4cfq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=binutils@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox