From: Craig A. Berry Date: Wed, 28 Mar 2001 10:55:20 +0000 (-0600) Subject: VMS fix-ups and status X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=275feba9fbd11230522bfce6c95502094ff651f6;p=p5sagit%2Fp5-mst-13.2.git VMS fix-ups and status Message-Id: <5.0.2.1.0.20010327164600.031563e8@exchi01> p4raw-id: //depot/perl@9414 --- diff --git a/ext/IO/IO.xs b/ext/IO/IO.xs index 4987b3d..3abc94b 100644 --- a/ext/IO/IO.xs +++ b/ext/IO/IO.xs @@ -420,7 +420,7 @@ sockatmark (sock) InputStream sock PROTOTYPE: $ PREINIT: - int fd,flag,result; + int fd,flag=0; CODE: { fd = PerlIO_fileno(sock); diff --git a/lib/ExtUtils/MM_VMS.pm b/lib/ExtUtils/MM_VMS.pm index ef5b541..072bc28 100644 --- a/lib/ExtUtils/MM_VMS.pm +++ b/lib/ExtUtils/MM_VMS.pm @@ -1389,7 +1389,7 @@ END push @m, qq[POD2MAN_EXE = $pod2man_exe\n], q[POD2MAN = $(PERL) -we "%m=@ARGV;for (keys %m){" - --e "system(""MCR $^X $(POD2MAN_EXE) $_ >$m{$_}"");}" +-e "system(""MCR $^X "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" $(POD2MAN_EXE) $_ >$m{$_}"");}" ]; push @m, "\nmanifypods : \$(MAN1PODS) \$(MAN3PODS)\n"; if (%{$self->{MAN1PODS}} || %{$self->{MAN3PODS}}) { diff --git a/vms/vms.c b/vms/vms.c index f63bbde..7e90656 100644 --- a/vms/vms.c +++ b/vms/vms.c @@ -4771,10 +4771,10 @@ static unsigned int *sockflags, sockflagsize; * We don't shim the other file open routines since a socket isn't * likely to be opened by a name. */ -/*{{{ FILE *my_fdopen(int fd, char *mode)*/ -FILE *my_fdopen(int fd, char *mode) +/*{{{ FILE *my_fdopen(int fd, const char *mode)*/ +FILE *my_fdopen(int fd, const char *mode) { - FILE *fp = fdopen(fd,mode); + FILE *fp = fdopen(fd, (char *) mode); if (fp) { unsigned int fdoff = fd / sizeof(unsigned int); diff --git a/vms/vmsish.h b/vms/vmsish.h index 15cda49..a8551da 100644 --- a/vms/vmsish.h +++ b/vms/vmsish.h @@ -736,7 +736,7 @@ bool vms_do_aexec (SV *, SV **, SV **); bool vms_do_exec (char *); unsigned long int do_aspawn (void *, void **, void **); unsigned long int do_spawn (char *); -FILE * my_fdopen (int, char *); +FILE * my_fdopen (int, const char *); int my_fclose (FILE *); int my_fwrite (void *, size_t, size_t, FILE *); int my_flush (FILE *);