summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-11-19 13:59:56 -0700
committerKarl Williamson <khw@cpan.org>2018-11-19 14:53:11 -0700
commite1895adcbd5ea43def0c89e1b0bff0628af49687 (patch)
tree770b1bb39c5dd092e96a8a4a2b61c0273929f2af /makedef.pl
parentbc55cddf915d70f806feda38506788f4c61a2574 (diff)
downloadperl-e1895adcbd5ea43def0c89e1b0bff0628af49687.tar.gz
Allow forcing use of POSIX 2008 locale fcns
These thread-safe functions are not normally used on unthreaded builds, retaining the use of the library functions that have long been used. But, it is now possible to tell Configure to use them on unthreaded builds.
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl12
1 files changed, 9 insertions, 3 deletions
diff --git a/makedef.pl b/makedef.pl
index 6b97ad0033..3c541d85d6 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -129,7 +129,7 @@ if ($define{USE_ITHREADS} && $ARGS{PLATFORM} ne 'win32' && $ARGS{PLATFORM} ne 'n
$define{USE_REENTRANT_API} = 1;
}
-if ( $define{USE_ITHREADS}
+if ( ($define{USE_ITHREADS} || $define{USE_THREAD_SAFE_LOCALE})
&& $define{HAS_SETLOCALE}
&& ! $define{NO_LOCALE}
&& ! $define{NO_POSIX_2008_LOCALE})
@@ -386,7 +386,6 @@ unless ($define{'USE_ITHREADS'}) {
++$skip{$_} foreach qw(
PL_keyword_plugin_mutex
PL_check_mutex
- PL_curlocales
PL_op_mutex
PL_regex_pad
PL_regex_padav
@@ -425,10 +424,17 @@ unless ($define{'USE_ITHREADS'}) {
Perl_stashpv_hvname_match
Perl_regdupe_internal
Perl_newPADOP
- PL_C_locale_obj
);
}
+unless ($define{USE_ITHREADS} || $define{USE_THREAD_SAFE_LOCALE})
+{
+ ++$skip{$_} foreach qw(
+ PL_C_locale_obj
+ PL_curlocales
+ );
+}
+
unless ( $define{'HAS_NEWLOCALE'}
&& $define{'HAS_FREELOCALE'}
&& $define{'HAS_USELOCALE'}