]> git.pld-linux.org Git - packages/perl.git/commitdiff
- process samedir includes too (used by x86 posix_types.h and unistd.h now)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 10 Feb 2008 13:14:01 +0000 (13:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-h2ph-includes.patch -> 1.1

perl-h2ph-includes.patch [new file with mode: 0644]

diff --git a/perl-h2ph-includes.patch b/perl-h2ph-includes.patch
new file mode 100644 (file)
index 0000000..84a6e97
--- /dev/null
@@ -0,0 +1,19 @@
+--- perl-5.10.0/utils/h2ph.PL.orig     2007-12-18 11:47:08.000000000 +0100
++++ perl-5.10.0/utils/h2ph.PL  2008-02-10 14:01:47.206525485 +0100
+@@ -717,6 +717,7 @@
+     return if ($file eq "-");
++    (my $filedir = $file) =~ s/[^\/]*$//;
+     open HEADER, $file or return;
+         while (defined($line = <HEADER>)) {
+             while (/\\$/) { # Handle continuation lines
+@@ -726,6 +727,8 @@
+             if ($line =~ /^#\s*include\s+<(.*?)>/) {
+                 push(@ARGV, $1) unless $Is_converted{$1};
++            } elsif ($line =~ /^#\s*include\s+\"(.*?)\"/) {
++                push(@ARGV, $filedir . $1) unless $Is_converted{$filedir . $1};
+             }
+         }
+     close HEADER;
This page took 0.028127 seconds and 4 git commands to generate.