mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
Don't use native methods in TestLib::slurp_file on Msys
Commit 114541d58e has upset some buildfarm members running Msys, that weren't previously having problems, so the use of native Windows methods to open files is restricted by this patch to only MSVC builds.
This commit is contained in:
parent
ca266a069a
commit
f6f59826f0
@ -400,7 +400,7 @@ sub slurp_file
|
|||||||
my ($filename) = @_;
|
my ($filename) = @_;
|
||||||
local $/;
|
local $/;
|
||||||
my $contents;
|
my $contents;
|
||||||
if (!$windows_os)
|
if ($Config{osname} ne 'MSWin32')
|
||||||
{
|
{
|
||||||
open(my $in, '<', $filename)
|
open(my $in, '<', $filename)
|
||||||
or die "could not read \"$filename\": $!";
|
or die "could not read \"$filename\": $!";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user