aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-05-05 19:02:24 +0000
committerPer Bothner <per@bothner.com>1992-05-05 19:02:24 +0000
commit5b07d6937259fbf70f9e329f17667d9d29259b4b (patch)
tree541cb2cfb9762fea73f6a4323377bf967f4856e1 /binutils/ar.c
parent2501643aeac29a2c24492dda87716faa16dca1aa (diff)
downloadgdb-5b07d6937259fbf70f9e329f17667d9d29259b4b.zip
gdb-5b07d6937259fbf70f9e329f17667d9d29259b4b.tar.gz
gdb-5b07d6937259fbf70f9e329f17667d9d29259b4b.tar.bz2
* Makefile.in: Bump to version 1.97.
* ar.c: Declare errno for machines that need it.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 244a15a..d881f4f 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -37,9 +37,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/time.h>
#endif
#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
#define BUFSIZE 8192
-void EXFUN(open_inarch,(char *archive_filename));
+
PROTO(void, print_contents, (bfd * member));
@@ -391,7 +394,7 @@ char *file;
return filename;
}
- void
+int
open_inarch(archive_filename)
char *archive_filename;
{
@@ -406,7 +409,7 @@ open_inarch(archive_filename)
fprintf (stderr, "%s: %s not found.\n", program_name,
archive_filename);
maybequit();
- return ;
+ return 0;
}
if (!silent_create)
fprintf(stderr,
@@ -446,6 +449,7 @@ open_inarch(archive_filename)
if (bfd_error != no_more_archived_files)
goto bloser;
}
+return 1;
}