Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / libs / poco / patches / 200-strerror.patch
1 --- a/Foundation/src/Error.cpp
2 +++ b/Foundation/src/Error.cpp
3 @@ -66,7 +66,7 @@
4                    without -D_GNU_SOURCE is needed, otherwise the GNU version is
5                    preferred.
6                 */
7 -#if defined _GNU_SOURCE && !POCO_ANDROID
8 +#if (defined _GNU_SOURCE && (defined __GLIBC__ || defined __UCLIBC__)) && !POCO_ANDROID
9                 char errmsg[256] = "";
10                 return std::string(strerror_r(errorCode, errmsg, 256));
11  #elif (_XOPEN_SOURCE >= 600) || POCO_ANDROID