summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2011-11-15 17:07:56 +0100
committerH.Merijn Brand <h.m.brand@xs4all.nl>2011-11-15 17:07:56 +0100
commit3ac704c6958a49066b823e6ee34fbbcbab4e8b9d (patch)
treefec0f3556d6c06fdfc02c9c4e5742a7b9f459ddb
parentb132e3dc9388c54fc5e9e0e097102a5146946fc0 (diff)
downloadperl-3ac704c6958a49066b823e6ee34fbbcbab4e8b9d.tar.gz
$Config{locincpath} might be empty
This causes h2xs.t to fail on systems where that is the case
-rw-r--r--utils/h2xs.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/h2xs.PL b/utils/h2xs.PL
index 634e891f84..6239f8f26f 100644
--- a/utils/h2xs.PL
+++ b/utils/h2xs.PL
@@ -789,7 +789,7 @@ if( @path_h ){
}
else {
@paths = (File::Spec->curdir(), $Config{usrinc},
- (split ' ', $Config{locincpth}), '/usr/include');
+ (split / +/, $Config{locincpth} // ""), '/usr/include');
}
foreach my $path_h (@path_h) {
$name ||= $path_h;