From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27317 invoked by alias); 5 Sep 2009 15:53:52 -0000 Received: (qmail 27269 invoked by uid 22791); 5 Sep 2009 15:53:52 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout4.012.net.il (HELO mtaout3.012.net.il) (84.95.2.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Sep 2009 15:53:47 +0000 Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KPI00F009BKZV00@i_mtaout3.012.net.il>; Sat, 05 Sep 2009 18:53:35 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.50.163]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KPI008G99HA0Y10@i_mtaout3.012.net.il>; Sat, 05 Sep 2009 18:53:35 +0300 (IDT) Date: Sat, 05 Sep 2009 15:53:00 -0000 From: Eli Zaretskii Subject: [patch/RFA] coffcode.h needs to include libiberty.h To: binutils@sourceware.org, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83iqfx4cfq.fsf@gnu.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00120.txt.bz2 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 * 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