summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/perl/files/letgcc-find-errno.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/files/letgcc-find-errno.patch')
-rw-r--r--meta/recipes-devtools/perl/files/letgcc-find-errno.patch14
1 files changed, 8 insertions, 6 deletions
diff --git a/meta/recipes-devtools/perl/files/letgcc-find-errno.patch b/meta/recipes-devtools/perl/files/letgcc-find-errno.patch
index 24722ee964..47f972d039 100644
--- a/meta/recipes-devtools/perl/files/letgcc-find-errno.patch
+++ b/meta/recipes-devtools/perl/files/letgcc-find-errno.patch
@@ -8,10 +8,12 @@ external toolchain since perl will search in ${STAGING_INCDIR} for
errno.h (when using gcc) and that isn't where it's located - its
wherever the external toolchain keeps it's headers.
---- perl-5.8.8/ext/Errno/Errno_pm.PL 2007/04/30 14:10:10 1.1
-+++ perl-5.8.8/ext/Errno/Errno_pm.PL 2007/04/30 14:21:35
-@@ -11,8 +11,18 @@
- open OUT, ">Errno.pm" or die "Cannot open Errno.pm: $!";
+Index: perl-5.12.2/ext/Errno/Errno_pm.PL
+===================================================================
+--- perl-5.12.2.orig/ext/Errno/Errno_pm.PL
++++ perl-5.12.2/ext/Errno/Errno_pm.PL
+@@ -17,8 +17,18 @@ unlink "Errno.tmp" if -f "Errno.tmp";
+ open OUT, ">Errno.tmp" or die "Cannot open Errno.tmp: $!";
select OUT;
my $file;
-my @files = get_files();
@@ -31,12 +33,12 @@ wherever the external toolchain keeps it's headers.
# MinGW complains "warning: #pragma system_header ignored outside include
# file" if the header files are processed individually, so include them
# all in .c file and process that instead.
-@@ -44,7 +54,7 @@
+@@ -53,7 +63,7 @@ sub process_file {
chomp($file = `cygpath -w "$file"`);
}
- return unless defined $file and -f $file;
+# return unless defined $file and -f $file;
- # warn "Processing $file\n";
+ # warn "Processing $file\n";
local *FH;