commit 09e453880eb15ce9af1793de2d7e45c12fc8a480 from: Thomas Adam date: Sat Oct 09 00:06:30 2021 UTC portable: remove extraneous strerror_r check On a __GLIBC__ system, we need to use __xpg_strerror_r() -- this is already checked for, so simply one of these checks to reduce code changes from upstream. commit - c206b220ed859d6c8bd3e061fb2668e0caa68d5c commit + 09e453880eb15ce9af1793de2d7e45c12fc8a480 blob - 7771a0b6aa35dd88d61d89d337613f8c62f6da75 blob + fe4639d84da9c3b57c93f789d62a178f3b7f872b --- lib/error.c +++ lib/error.c @@ -151,15 +151,7 @@ got_error_from_errno_fmt(const char *fmt, ...) vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); -#ifdef __GLIBC__ - /* - * The autoconf test for strerror_r is broken in current versions - * of autoconf: https://savannah.gnu.org/support/?110367 - */ - __xpg_strerror_r(errno, strerr, sizeof(strerr)); -#else strerror_r(errno, strerr, sizeof(strerr)); -#endif snprintf(cerr->msg, sizeof(cerr->msg), "%s: %s", buf, strerr); err->code = GOT_ERR_ERRNO;