You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
428 B

  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