diff options
author | Karl Williamson <khw@cpan.org> | 2020-12-08 17:09:04 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-12-08 17:18:40 -0700 |
commit | c07463d862e4832cc6a94200a77a3170ef2dca18 (patch) | |
tree | 3cd3507180f18a8854ddda4e05394b60bc4f6d65 /perl.h | |
parent | 31667aca63c681e1f19afe2f493cc98e62188acc (diff) | |
download | perl-c07463d862e4832cc6a94200a77a3170ef2dca18.tar.gz |
Fix freebsd/netbsd builds
These have an inconsistent configuration in which several functions exist
for thread-safe locales, but the crucial one doesn't show up in our
Configure probe. The code this commit fixes assumed that all or nothing
would be present.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6564,8 +6564,9 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect. * separate mutexes for some of them, the only changes needed are here. * Define just the necessary macros. The compiler should then croak if the * #ifdef's in the code are incorrect */ -# if defined(HAS_LOCALECONV) && ( ! defined(HAS_LOCALECONV_L) \ - || defined(TS_W32_BROKEN_LOCALECONV)) +# if defined(HAS_LOCALECONV) && ( ! defined(HAS_POSIX_2008_LOCALE) \ + || ! defined(HAS_LOCALECONV_L) \ + || defined(TS_W32_BROKEN_LOCALECONV)) # define LOCALECONV_LOCK LOCALE_LOCK_ # define LOCALECONV_UNLOCK LOCALE_UNLOCK_ # endif |