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