Skip to content

[10.3] Use generic errstr.go implementation on musl

glibc provides two version of strerror_r() depending on a feature test macro. The first is the XSI-compliant version which returns an int, the second is GNU-specific and returns a char pointer.

Similarity, gcc's libgo provides two implementations of Errstr() both of which use strerror_r(). On Linux, it is assumed that the GNU-specific strerror_r version is used. However, musl only provides the XSI-compliant version of strerror_r. This patch enables the generic Errstr() implementation which also uses the XSI-compliant version of strerror_r.

Merge request reports

Loading