This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Include "libiberty.h" in archive.c
- From: Mark Kettenis <kettenis at gnu dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 15 Jun 2005 19:01:13 +0200
- Subject: 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"