summaryrefslogtreecommitdiff
path: root/bfd/vms-misc.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-05-25 10:14:12 +0000
committerNick Clifton <nickc@redhat.com>2010-05-25 10:14:12 +0000
commit71bf0c407db5d0d73a1afe83b6407f65f456f21f (patch)
treee638660493e0f6715132ca6633c5893733fdc128 /bfd/vms-misc.c
parentbb8e5635ee8f9324915def448dc5c6b500d1e9ae (diff)
downloadbinutils-redhat-71bf0c407db5d0d73a1afe83b6407f65f456f21f.tar.gz
PR ld/11624
* archive.c (_bfd_calloc_wrapper): New function. (_bfd_add_bfd_to_archive_cache): Use it. * configure.in: Add alpha*-*-*vms* to list of natives. * configure: Regenerate. * vms-misc.c: Define globalref if necessary. (vms_convert_to_var_unix_filename): Rename to _bfd_vms_convert_to_var_unix_filename and export. * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename. * vms-alpha.c (vms_close_and_cleanup): Update invocation of vms_convert_to_var_unix_filename.
Diffstat (limited to 'bfd/vms-misc.c')
-rw-r--r--bfd/vms-misc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c
index 67cc25adc0..be6d5094b1 100644
--- a/bfd/vms-misc.c
+++ b/bfd/vms-misc.c
@@ -1,7 +1,7 @@
/* vms-misc.c -- BFD back-end for VMS/VAX (openVMS/VAX) and
EVAX (openVMS/Alpha) files.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Miscellaneous functions.
@@ -33,6 +33,9 @@
#include "safe-ctype.h"
#ifdef VMS
+#if defined(__GNUC__) && !defined(globalref)
+#define globalref extern
+#endif
#include <rms.h>
#include <unixlib.h>
#include <starlet.h>
@@ -399,8 +402,8 @@ _bfd_vms_output_fill (struct vms_rec_wr *recwr, int value, int count)
using undocumented system call sys$modify().
Pure VMS version. */
-static void
-vms_convert_to_var (char *vms_filename)
+void
+_bfd_vms_convert_to_var (char * vms_filename)
{
struct FAB fab = cc$rms_fab;