1 --- a/Foundation/src/Error.cpp
2 +++ b/Foundation/src/Error.cpp
4 without -D_GNU_SOURCE is needed, otherwise the GNU version is
7 -#if defined _GNU_SOURCE && !POCO_ANDROID
8 +#if (defined _GNU_SOURCE && (defined __GLIBC__ || defined __UCLIBC__)) && !POCO_ANDROID
10 return std::string(strerror_r(errorCode, errmsg, 256));
11 #elif (_XOPEN_SOURCE >= 600) || POCO_ANDROID