From: Yitzchak Scott-Thoennes Date: Thu, 13 Jan 2005 16:11:36 +0000 (-0800) Subject: Fix for building with MinGW under Cygwin X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=22402b4762ced374b42179386a54f4055120b9fb;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index de4d549..20eab28 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";