Merge pull request #319 from csabakeszegh/develop

android build with cmake
This commit is contained in:
Aleksandar Fabijanic
2014-05-21 22:20:39 -05:00
3 changed files with 13 additions and 5 deletions

View File

@@ -55,10 +55,10 @@ namespace Poco {
without -D_GNU_SOURCE is needed, otherwise the GNU version is
preferred.
*/
#ifdef _GNU_SOURCE
#if defined _GNU_SOURCE && !POCO_ANDROID
char errmsg[256] = "";
return std::string(strerror_r(errorCode, errmsg, 256));
#elif (_XOPEN_SOURCE >= 600)
#elif (_XOPEN_SOURCE >= 600) || POCO_ANDROID
char errmsg[256] = "";
strerror_r(errorCode, errmsg, 256);
return errmsg;