summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-07 19:22:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-07 19:22:23 +0000
commit07853d7a3689bd5640448962dc55ce2035962584 (patch)
tree3f4a221c425eb799f191ea5659a7cc25a8c486cf /utils
parentef0ae776e5592ecf51fbe1925e8b4ab6c2e7d472 (diff)
downloadperl-07853d7a3689bd5640448962dc55ce2035962584.tar.gz
perlivp: sometimes headers and symbols don't quite match.
p4raw-id: //depot/perl@17068
Diffstat (limited to 'utils')
-rw-r--r--utils/perlivp.PL9
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/perlivp.PL b/utils/perlivp.PL
index 39d7f2a563..74a72a3476 100644
--- a/utils/perlivp.PL
+++ b/utils/perlivp.PL
@@ -306,9 +306,16 @@ my @ph_files = qw(stdio.ph);
while (($var, $val) = each %Config) {
if ($var =~ m/i_(.+)/ && $val eq 'define') {
$h_file = $1;
+ # Some header and symbol names don't match for hysterical raisins.
+ $h_file = 'arpa/inet' if $h_file eq 'arpainet';
+ $h_file = 'netinet/in' if $h_file eq 'niin';
+ $h_file = 'netinet/tcp' if $h_file eq 'netinettcp';
+ $h_file = 'sys/resource' if $h_file eq 'sysresrc';
+ $h_file = 'sys/select' if $h_file eq 'sysselct';
+ $h_file = 'sys/security' if $h_file eq 'syssecrt';
# This ought to distinguish syslog from sys/syslog.
# (NB syslog.ph is heavily used for the DBI pre-requisites).
- $h_file =~ s{^sys(.+)}{sys/$1} unless $h_file eq 'syslog';
+ $h_file =~ s{^sys(\w.+)}{sys/$1} unless $h_file eq 'syslog';
push(@ph_files, "$h_file.ph");
}
}