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