From 06887461548bebcb7aa47f5cb06d421d8fd40944 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Wed, 2 May 2012 13:31:48 +0200 Subject: [PATCH] Add Android to conditionals around langinfo.h usage. Despite being mandated by POSIX, Android does not support this. Change-Id: I3da42ff9b3336cb6657692a9eb70dd3118ac1756 Reviewed-by: Bradley T. Hughes Reviewed-by: Thiago Macieira --- src/corelib/codecs/qtextcodec.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/corelib/codecs/qtextcodec.cpp b/src/corelib/codecs/qtextcodec.cpp index b7939f1..916aefa 100644 --- a/src/corelib/codecs/qtextcodec.cpp +++ b/src/corelib/codecs/qtextcodec.cpp @@ -82,8 +82,9 @@ #include #include #include -#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && !defined(Q_OS_OSF) -#include +#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && \ + !defined(Q_OS_OSF) && !defined(Q_OS_LINUX_ANDROID) +# include #endif #ifdef Q_OS_WIN @@ -534,7 +535,8 @@ static void setupLocaleMapper() localeMapper = QTextCodec::codecForName("System"); #endif -#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && !defined(Q_OS_OSF) +#if defined (_XOPEN_UNIX) && !defined(Q_OS_QNX) && \ + !defined(Q_OS_OSF) && !defined(Q_OS_LINUX_ANDROID) if (!localeMapper) { char *charset = nl_langinfo (CODESET); if (charset) -- 2.7.4