summaryrefslogtreecommitdiff
path: root/arscan.c
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2014-09-11 22:39:34 -0500
committerPaul Smith <psmith@gnu.org>2014-10-20 01:31:42 -0400
commit18eb093f569812e832a0fedcf867c85be1ae45c6 (patch)
treeff9b2ec2174b54227f27d5be89648811a74a7ec2 /arscan.c
parent894ee7f6c8b96ed89d4672da6cde4105c15cbf31 (diff)
downloadgunmake-18eb093f569812e832a0fedcf867c85be1ae45c6.tar.gz
[SV 41758]: Fix archive support for VMS.
Upated to match change to run_make_tests and some future fixes to make on VMS. * arscan.c: Use ANSI compatible pragmas instead of VAX C extensions. * tests/scripts/features/archives: Fix tests to use VMS rules and answers when running on VMS and using DCL as a shell. * tests/scripts/features/vpath3: Fix epected answer on test when run on VMS. * tests/scripts/vms/library: (New) Test the VMS library rules that are not tested by existing tests.
Diffstat (limited to 'arscan.c')
-rw-r--r--arscan.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/arscan.c b/arscan.c
index 24286fd..a3c2b8b 100644
--- a/arscan.c
+++ b/arscan.c
@@ -38,12 +38,18 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#include <ssdef.h>
#include <stsdef.h>
#include <rmsdef.h>
-globalvalue unsigned int LBR$_HDRTRUNC;
-#if __DECC
+/* This symbol should be present in lbrdef.h. */
+#ifndef LBR$_HDRTRUNC
+#pragma extern_model save
+#pragma extern_model globalvalue
+extern unsigned int LBR$_HDRTRUNC;
+#pragma extern_model restore
+#endif
+
#include <unixlib.h>
#include <lbr$routines.h>
-#endif
+
const char *
vmsify (const char *name, int type);