diff options
author | Yitzchak Scott-Thoennes <sthoenna@efn.org> | 2005-01-13 08:11:36 -0800 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-01-17 17:55:02 +0000 |
commit | 22402b4762ced374b42179386a54f4055120b9fb (patch) | |
tree | 5a1e68cd43d6c240d2268cf5872ed460b797146d /ext/Errno | |
parent | 2018b34778e5bd6adb24a41e62ec81aa880a20ff (diff) | |
download | perl-22402b4762ced374b42179386a54f4055120b9fb.tar.gz |
Fix for building with MinGW under Cygwin
Subject: [PATCH] building win32 perl with cygwin's mingw (was: Re: [PATCH] Re: lib/Config/Extensions.t fails on Win32)
Message-ID: <20050114001136.GC2516@efn.org>
p4raw-id: //depot/perl@23807
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index de4d5495bc..20eab28cfe 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -2,7 +2,7 @@ use ExtUtils::MakeMaker; use Config; use strict; -our $VERSION = "1.09_00"; +our $VERSION = "1.09_01"; my %err = (); my %wsa = (); @@ -20,6 +20,12 @@ unlink "errno.c" if -f "errno.c"; sub process_file { my($file) = @_; + # for win32 perl under cygwin, we need to get a windows pathname + if ($^O eq 'MSWin32' && $Config{cc} =~ /\B-mno-cygwin\b/ && + defined($file) && !-f $file) { + chomp($file = `cygpath -w "$file"`); + } + return unless defined $file and -f $file; # warn "Processing $file\n"; |