mirror of
https://github.com/znc/znc.git
synced 2026-05-08 22:34:45 +02:00
Update Csocket to jimloco/Csocket@09b6430dba
Fixes build failures under musl, an alternative libc, due to incompatibilities with GLIBC specific code. Also fixes Issue #776
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user