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