summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-12-08 17:09:04 -0700
committerKarl Williamson <khw@cpan.org>2020-12-08 17:18:40 -0700
commitc07463d862e4832cc6a94200a77a3170ef2dca18 (patch)
tree3cd3507180f18a8854ddda4e05394b60bc4f6d65 /perl.h
parent31667aca63c681e1f19afe2f493cc98e62188acc (diff)
downloadperl-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 12419837c0..a839ef967a 100644
--- a/perl.h
+++ b/perl.h
@@ -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