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