Include "libiberty.h" in archive.c

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Include "libiberty.h" in archive.c

Mark Kettenis-2
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  <[hidden email]>

        * 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"
Reply | Threaded
Open this post in threaded view
|

Re: Include "libiberty.h" in archive.c

DJ Delorie-2

> 2005-06-15  Mark Kettenis  <[hidden email]>
>
> * archive.c: Include "libiberty.h".

Ok.