diff options
author | Tony Cook <tony@develop-help.com> | 2022-10-11 17:07:27 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2022-10-24 15:24:57 +1100 |
commit | ecc84dedf845e12ad0ac28e42d0ea6bfe91aa0a3 (patch) | |
tree | 2e7a1afda91c3140810693ee3a7b5d638ddb4b89 /dist/Time-HiRes | |
parent | 7b458feb0879135159f3c88ea8f0bf3f81074a7a (diff) | |
download | perl-ecc84dedf845e12ad0ac28e42d0ea6bfe91aa0a3.tar.gz |
Time::HiRes: make sure PERL_DARWIN is defined on darwin
The darwin hints file ensures this is set, but Apple appears to have
removed it for the system perl.
This prevented the emulation code for darwin from being compiled.
Diffstat (limited to 'dist/Time-HiRes')
-rw-r--r-- | dist/Time-HiRes/Makefile.PL | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/Time-HiRes/Makefile.PL b/dist/Time-HiRes/Makefile.PL index a2650c2950..d505fc1aa4 100644 --- a/dist/Time-HiRes/Makefile.PL +++ b/dist/Time-HiRes/Makefile.PL @@ -850,6 +850,11 @@ EOM print "NOT found.\n"; } } + if ($^O eq "darwin") { + # the system perl on darwin doesn't seem to include -DPERL_DARWIN + # which breaks setting up emulation + DEFINE("PERL_DARWIN"); + } if ($DEFINE) { $DEFINE =~ s/^\s+//; |