summaryrefslogtreecommitdiff
path: root/autodoc.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-09-05 09:39:38 -0600
committerKarl Williamson <khw@cpan.org>2020-09-05 11:30:20 -0600
commitd387182099b4bf304f6e55606d2e6096a9f9caf9 (patch)
tree97801cabbb1648c31304509df1b68d2b201927df /autodoc.pl
parentd771dca875579198e8a34ee9d0e3e6dfb8168db7 (diff)
downloadperl-d387182099b4bf304f6e55606d2e6096a9f9caf9.tar.gz
autodoc: Fix for win32.
This platform has config.h located in a different place Thanks to Christian Walde for testing this
Diffstat (limited to 'autodoc.pl')
-rw-r--r--autodoc.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/autodoc.pl b/autodoc.pl
index ed7c40389f..cf0c57b3fd 100644
--- a/autodoc.pl
+++ b/autodoc.pl
@@ -511,7 +511,10 @@ sub parse_config_h {
use re '/aa'; # Everthing is ASCII in this file
# Process config.h
- open my $fh, '<', 'config.h' or die "Can't open config.h: $!";
+ my $config_h = 'config.h';
+ $config_h = 'win32/config.h' unless -e $config_h;
+ die "Can't find $config_h" unless -e $config_h;
+ open my $fh, '<', $config_h or die "Can't open $config_h: $!";
while (<$fh>) {
# Look for lines like /* FOO_BAR: