aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-05-21 00:14:16 +0000
committerSteve Chamberlain <steve@cygnus>1991-05-21 00:14:16 +0000
commit7ed4093abcbe329e94888b6ed1c0ead5bea4e7bf (patch)
tree52f735fbb18dd4bd2711f0b7b1c8f5b8555e336f /bfd/archive.c
parentfc5d60745615a903d4a149fc5753ea54d3606597 (diff)
downloadgdb-7ed4093abcbe329e94888b6ed1c0ead5bea4e7bf.zip
gdb-7ed4093abcbe329e94888b6ed1c0ead5bea4e7bf.tar.gz
gdb-7ed4093abcbe329e94888b6ed1c0ead5bea4e7bf.tar.bz2
*** empty log message ***
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 3058d33..b417d3b 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -29,7 +29,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* $Id$ */
-#include "sysdep.h"
+#include <sysdep.h>
#include "bfd.h"
#include "libbfd.h"
#include "ar.h"
@@ -169,6 +169,9 @@ get_extended_arelt_filename (arch, name)
bfd *arch;
char *name;
{
+#ifndef errno
+ extern int errno;
+#endif
unsigned long index = 0;
/* Should extract string so that I can guarantee not to overflow into
@@ -196,7 +199,10 @@ struct areltdata *
snarf_ar_hdr (abfd)
bfd *abfd;
{
- extern int errno;
+#ifndef errno
+ extern int errno;
+#endif
+
struct ar_hdr hdr;
char *hdrp = (char *) &hdr;
unsigned int parsed_size;
@@ -1061,7 +1067,7 @@ compute_and_write_armap (arch, elength)
orl_max * sizeof (struct orl));
}
- (map[orl_count]).name = &((syms[src_count])->name);
+ (map[orl_count]).name = (char **) &((syms[src_count])->name);
(map[orl_count]).pos = elt_no;
(map[orl_count]).namidx = stridx;