summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-09 12:06:30 -0700
committerKarl Williamson <khw@cpan.org>2018-03-12 10:22:01 -0600
commit39e69e777b8acb3d8408d75aa0ba12fa6f7db35e (patch)
tree9af3117f843c6c15e687552c2988c74757c7900b /perl.c
parent1b6cb30eab88d60350ddd3276647739c0f1ce888 (diff)
downloadperl-39e69e777b8acb3d8408d75aa0ba12fa6f7db35e.tar.gz
Don't create locale object unless threaded
PL_C_locale_obj is now only created on threaded builds on systems with POSIX 2008. On unthreaded builds, we really should continue to use the old tried and true library calls.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 1bc15a0675..f894780a0b 100644
--- a/perl.c
+++ b/perl.c
@@ -470,7 +470,7 @@ perl_construct(pTHXx)
/* Start with 1 bucket, for DFS. It's unlikely we'll need more. */
HvMAX(PL_registered_mros) = 0;
-#ifdef HAS_POSIX_2008_LOCALE
+#ifdef USE_POSIX_2008_LOCALE
PL_C_locale_obj = newlocale(LC_ALL_MASK, "C", NULL);
#endif