libgnutls: Update from 3.5.12 to 3.5.13
[termux-packages] / packages / libandroid-support / langinfo.h.patch
... / ...
CommitLineData
1Include <xlocale.h> from langinfo.h so that locale_t gets defined.
2
3Include <locale.h> from langinfo.h so that LC_ALL gets defined.
4
5diff -u -r /home/fornwall/lib/android-ndk/sources/android/support/include/langinfo.h ./include/langinfo.h
6--- /home/fornwall/lib/android-ndk/sources/android/support/include/langinfo.h 2016-03-03 16:54:04.000000000 -0500
7+++ ./include/langinfo.h 2016-03-12 17:23:01.187197445 -0500
8@@ -31,6 +31,8 @@
9 // __LP64__
10
11 #include <nl_types.h>
12+#include <xlocale.h>
13+#include <locale.h>
14
15 #define _NL_ITEM(category,index) (((category) << 10) | (index))
16
17@@ -111,10 +112,8 @@
18 extern "C" {
19 #endif
20
21-#if !defined(__LP64__)
22 char *nl_langinfo(nl_item);
23 char *nl_langinfo_l(nl_item, locale_t);
24-#endif // !__LP64__
25
26 #ifdef __cplusplus
27 } // extern "C"