b2938d
From 9289d4dc7a3d24b20c6e25045e687321ee3e8faf Mon Sep 17 00:00:00 2001
b2938d
From: Karl Williamson <khw@cpan.org>
b2938d
Date: Mon, 30 Nov 2020 09:25:52 -0700
b2938d
Subject: [PATCH] locale.c: Fix typo in #ifdef
b2938d
MIME-Version: 1.0
b2938d
Content-Type: text/plain; charset=UTF-8
b2938d
Content-Transfer-Encoding: 8bit
b2938d
b2938d
This misspelling led to the code assuming that the platform didn't have
b2938d
a feature that, if used, would result in faster execution.
b2938d
b2938d
Signed-off-by: Petr Písař <ppisar@redhat.com>
b2938d
---
b2938d
 locale.c | 2 +-
b2938d
 1 file changed, 1 insertion(+), 1 deletion(-)
b2938d
b2938d
diff --git a/locale.c b/locale.c
b2938d
index 9500ab7960..5970423404 100644
b2938d
--- a/locale.c
b2938d
+++ b/locale.c
b2938d
@@ -2621,7 +2621,7 @@ S_my_nl_langinfo(const int item, bool toggle)
b2938d
 #if defined(HAS_NL_LANGINFO) /* nl_langinfo() is available.  */
b2938d
 #  if   ! defined(HAS_THREAD_SAFE_NL_LANGINFO_L)      \
b2938d
      || ! defined(HAS_POSIX_2008_LOCALE)              \
b2938d
-     || ! defined(DUPLOCALE)
b2938d
+     || ! defined(HAS_DUPLOCALE)
b2938d
 
b2938d
     /* Here, use plain nl_langinfo(), switching to the underlying LC_NUMERIC
b2938d
      * for those items dependent on it.  This must be copied to a buffer before
b2938d
-- 
b2938d
2.26.2
b2938d