From 2a435b690e0fd07468fc27a652faa25c025baa43 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 12 Mar 2016 17:51:55 -0500 Subject: [PATCH] libandroid-support: Define nl_langinfo for 64-bit --- packages/libandroid-support/langinfo.h.patch | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/libandroid-support/langinfo.h.patch b/packages/libandroid-support/langinfo.h.patch index c4658bd46..415d3ffe0 100644 --- a/packages/libandroid-support/langinfo.h.patch +++ b/packages/libandroid-support/langinfo.h.patch @@ -1,8 +1,8 @@ Include from langinfo.h so that locale_t gets defined. diff -u -r /home/fornwall/lib/android-ndk/sources/android/support/include/langinfo.h ./include/langinfo.h ---- /home/fornwall/lib/android-ndk/sources/android/support/include/langinfo.h 2014-07-29 04:23:14.000000000 -0400 -+++ ./include/langinfo.h 2014-11-27 12:46:17.606220352 -0500 +--- /home/fornwall/lib/android-ndk/sources/android/support/include/langinfo.h 2016-03-03 16:54:04.000000000 -0500 ++++ ./include/langinfo.h 2016-03-12 17:23:01.187197445 -0500 @@ -31,6 +31,7 @@ // __LP64__ @@ -11,3 +11,14 @@ diff -u -r /home/fornwall/lib/android-ndk/sources/android/support/include/langin #define _NL_ITEM(category,index) (((category) << 10) | (index)) +@@ -111,10 +112,8 @@ + extern "C" { + #endif + +-#if !defined(__LP64__) + char *nl_langinfo(nl_item); + char *nl_langinfo_l(nl_item, locale_t); +-#endif // !__LP64__ + + #ifdef __cplusplus + } // extern "C"