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.

17 lines
445 B

  1. --- a/lib/err/errPosix.c
  2. +++ b/lib/err/errPosix.c
  3. @@ -61,13 +61,7 @@ ErrErrno2String(Err_Number errorNumber, // IN
  4. char *buf, // OUT: return buffer
  5. size_t bufSize) // IN: size of buffer
  6. {
  7. - char *p;
  8. -
  9. -#if defined(__linux__) && !defined(__ANDROID__)
  10. - p = strerror_r(errorNumber, buf, bufSize);
  11. -#else
  12. - p = strerror(errorNumber);
  13. -#endif
  14. + char *p = strerror(errorNumber);
  15. ASSERT(p != NULL);
  16. return p;
  17. }