This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Include "libiberty.h" in archive.c


We use snprintf(3) in bfd/archive.c but don't include libiberty.c.  On
systems that don't have it (such as HP-UX 10.20) we use the version in
libiberty, but we don't have a prototype, so we get a compiler
warning.  Including libiberty.h fixes that.

OK?

Mark

2005-06-15  Mark Kettenis  <kettenis@gnu.org>

	* archive.c: Include "libiberty.h".

Index: archive.c
===================================================================
RCS file: /cvs/src/src/bfd/archive.c,v
retrieving revision 1.40
diff -u -p -r1.40 archive.c
--- archive.c	14 Jun 2005 11:04:22 -0000	1.40
+++ archive.c	15 Jun 2005 16:56:44 -0000
@@ -129,6 +129,7 @@ DESCRIPTION
 
 #include "bfd.h"
 #include "sysdep.h"
+#include "libiberty.h"
 #include "libbfd.h"
 #include "aout/ar.h"
 #include "aout/ranlib.h"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]