diff options
author | Karl Williamson <khw@cpan.org> | 2018-02-16 15:15:06 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-02-18 11:02:37 -0700 |
commit | b65bff596352d4149af558d10b3a0cb698d8c2b7 (patch) | |
tree | 2bc75010b6094d39d84bdc9396d3c14900394aac /makedef.pl | |
parent | 7e5377f714ebe84e0fe2599b3bfec50036f0d18f (diff) | |
download | perl-b65bff596352d4149af558d10b3a0cb698d8c2b7.tar.gz |
makedef.pl: Use all #ifdefs to decide
This uses all the conditions that go in to deciding to define this
variable, instead of taking a shortcut. (It's unfortunate that the
shortcut defined in perl.h now used elsewhere via commit
7e5377f714ebe84e0fe2599b3bfec50036f0d18f is not available to makedef.pl.
It would make sense to have this file look at perl.h and avoid
duplication).
This fixes some freebsd builds, which failed because their hints file
undef'd a different variable than this shortuct looked at.
Diffstat (limited to 'makedef.pl')
-rw-r--r-- | makedef.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/makedef.pl b/makedef.pl index 93e47b03c5..aabdaa78ee 100644 --- a/makedef.pl +++ b/makedef.pl @@ -399,7 +399,10 @@ unless ($define{'USE_ITHREADS'}) { ); } -unless ($define{'HAS_NEWLOCALE'} && ! $define{'NO_POSIX_2008_LOCALE'}) +unless ( $define{'HAS_NEWLOCALE'} + && $define{'HAS_FREELOCALE'} + && $define{'HAS_USELOCALE'} + && ! $define{'NO_POSIX_2008_LOCALE'}) { ++$skip{$_} foreach qw( PL_C_locale_obj |