diff options
Diffstat (limited to 'vms/vms_yfix.pl')
-rw-r--r-- | vms/vms_yfix.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vms/vms_yfix.pl b/vms/vms_yfix.pl index 9f29c80825..f57ea1d515 100644 --- a/vms/vms_yfix.pl +++ b/vms/vms_yfix.pl @@ -23,6 +23,10 @@ while (<C>) { # "y.tab.c" is illegal as a VMS filename; DECC 5.2/VAX preprocessor # doesn't like this. if ( s/^#line\s+(\d+)\s+"y.tab.c"/#line $1 "y_tab.c"/ ) { 1; } + elsif (/char \*getenv/) { + # accomodate old VAXC's macro susbstitution pecularities + $_ = "# ifndef getenv\n$_# endif\n"; + } else { # add the dEXT tag to definitions of global vars, so we'll insert # a globaldef when perly.c is compiled |