}
if ($define{'USE_PERLIO'}) {
- # Export the symols that make up the PerlIO abstraction, regardless
+ # Export the symbols that make up the PerlIO abstraction, regardless
# of its implementation - read from a file
push @syms, 'perlio.sym';
# within the block, as the *first* definition may have flags which
# mean "don't export"
next if $seen{$func}++;
- $func = "Perl_$func" if $flags =~ /[pbX]/;
+ # Should we also skip adding the Perl_ prefix if $flags =~ /o/ ?
+ $func = "Perl_$func" if ($flags =~ /[pbX]/ && $func !~ /^Perl_/);
++$export{$func} unless exists $skip{$func};
}
}