C => [qw(sdbm.c pair.c hash.c)]
);
+sub MY::constants {
+ package MY;
+ my $r = shift->SUPER::constants();
+ if ($^O eq 'VMS') {
+ $r =~ s/^INST_STATIC =.*$/INST_STATIC = libsdbm\$(LIB_EXT)/m
+ }
+ return $r;
+}
+
sub MY::post_constants {
+ package MY;
+ if ($^O eq 'VMS') {
+ shift->SUPER::post_constants();
+ } else {
'
INST_STATIC = libsdbm$(LIB_EXT)
'
+ }
}
sub MY::top_targets {
print "not " unless $foo eq "ok 3\n";
print "ok 2\n";
-binmode STDOUT; # Copy::copy works in binary mode
+binmode STDOUT unless $^O eq 'VMS'; # Copy::copy works in binary mode
copy "copy-$$", \*STDOUT;
unlink "copy-$$" or die "unlink: $!";
$SIG{__WARN__} = sub { $warns++; warn $_[0] };
print "1..14\n";
}
+
+$wanted_filename = $^O eq 'VMS' ? '0.' : '0';
print "not " if $warns;
print "ok 1\n";
$seen = 0;
while (my $name = readdir(DIR))
{
- $seen++ if $name eq '0';
+ $seen++ if $name eq $wanted_filename;
}
print "not " unless $seen;
print "ok 6\n";
$dummy = '';
while (($seen ? $dummy : $name) = readdir(DIR))
{
- $seen++ if $name eq '0';
+ $seen++ if $name eq $wanted_filename;
}
print "not " unless $seen;
print "ok 7\n";
$seen = 0;
while ($where{$seen} = readdir(DIR))
{
- $seen++ if $where{$seen} eq '0';
+ $seen++ if $where{$seen} eq $wanted_filename;
}
print "not " unless $seen;
print "ok 8\n";
$seen = 0;
while (my $name = glob('*'))
{
- $seen++ if $name eq '0';
+ $seen++ if $name eq $wanted_filename;
}
print "not " unless $seen;
print "ok 9\n";
$dummy = '';
while (($seen ? $dummy : $name) = glob('*'))
{
- $seen++ if $name eq '0';
+ $seen++ if $name eq $wanted_filename;
}
print "not " unless $seen;
print "ok 10\n";
$seen = 0;
while ($where{$seen} = glob('*'))
{
- $seen++ if $where{$seen} eq '0';
+ $seen++ if $where{$seen} eq $wanted_filename;
}
print "not " unless $seen;
print "ok 11\n";
# Globs should be forbidden, except under VMS,
# which doesn't spawn an external program.
if ($Is_VMS) {
- for (29..30) { print "ok $_\n"; }
+ for (31..32) { print "ok $_\n"; }
}
else {
my @globs = eval { <*> };
$DESCRIPTOR(clidsc,"DCL"); $DESCRIPTOR(tabdsc,"DCLTABLES");
$DESCRIPTOR(mbxdsc,mbxnam);
#ifdef USE_THREADS
- static perl_mutex primenv_mutex = PTHREAD_MUTEX_INITIALIZER;
+ static perl_mutex primenv_mutex;
+ MUTEX_INIT(&primenv_mutex);
#endif
if (primed) return;