Restore original Darwin buffer hack.

This commit is contained in:
Colin Kuskie 2009-09-24 19:49:30 -07:00
parent c6d6882f4a
commit 4b974d644b

View file

@ -32,9 +32,10 @@ BEGIN {
if ( $^O eq 'darwin' && $Config::Config{osvers} lt '8.0.0' ) {
unshift @INC, sub {
return undef unless $_[1] =~ m/^Apache2|APR/;
my $buffer = '1';
open my $fh, '<', \$buffer;
return $fh;
return IO::File->new( $INC{'Class/Null.pm'}, &IO::File::O_RDONLY );
#my $buffer = '1';
#open my $fh, '<', \$buffer;
#return $fh;
};
no warnings 'redefine';