aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mc/mc-4.6.2/mc-utf8-slang-codeset.patch
blob: ff4780c7cef28f264edad74f75ab10492630df5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- mc-4.6.2/slang/slcommon.c
+++ mc-4.6.2/slang/slcommon.c
@@ -31,7 +31,7 @@
 # include <locale.h>
 #endif
 
-#ifdef HAVE_LANGINFO_H
+#ifdef HAVE_LANGINFO_CODESET
 # include <langinfo.h>
 #endif
 
@@ -87,7 +87,7 @@
 
    (void) setlocale (LC_ALL, "");
 
-#ifdef HAVE_NL_LANGINFO_CODESET
+#ifdef HAVE_LANGINFO_CODESET
    locale = nl_langinfo (CODESET);
    if ((locale != NULL) && (*locale))
      {