Fixes build failures under musl, an alternative libc, due to
incompatibilities with GLIBC specific code. Also fixes Issue #776
This commit is contained in:
James Taylor
2014-12-17 12:05:16 +00:00
parent 2ee19fd415
commit 6720eec669
+1 -1
View File
@@ -629,7 +629,7 @@ static const char * CS_StrError( int iErrno, char * pszBuff, size_t uBuffLen )
return( strerror( iErrno ) );
#else
memset( pszBuff, '\0', uBuffLen );
#if !defined( _GNU_SOURCE ) || defined( __FreeBSD__ )
#if !defined( _GNU_SOURCE ) || !defined(__GLIBC__) || defined( __FreeBSD__ )
if( strerror_r( iErrno, pszBuff, uBuffLen ) == 0 )
return( pszBuff );
#else