about summary refs log tree commit diff
path: root/src/locale/langinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/langinfo.c')
-rw-r--r--src/locale/langinfo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/locale/langinfo.c b/src/locale/langinfo.c
index f7f56012..01593148 100644
--- a/src/locale/langinfo.c
+++ b/src/locale/langinfo.c
@@ -1,5 +1,6 @@
 #include <locale.h>
 #include <langinfo.h>
+#include "libc.h"
 
 static const char c_time[] =
 	"Sun\0" "Mon\0" "Tue\0" "Wed\0" "Thu\0" "Fri\0" "Sat\0"
@@ -24,7 +25,7 @@ static const char c_time[] =
 static const char c_messages[] = "^[yY]\0" "^[nN]";
 static const char c_numeric[] = ".\0" "";
 
-const char *__langinfo(nl_item item)
+char *__langinfo(nl_item item)
 {
 	int cat = item >> 16;
 	int idx = item & 65535;
@@ -54,5 +55,7 @@ const char *__langinfo(nl_item item)
 	}
 
 	for (; idx; idx--, str++) for (; *str; str++);
-	return str;
+	return (char *)str;
 }
+
+weak_alias(__langinfo, nl_langinfo);