Commit Diff


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;