From 6720eec669a442bb4f585d43d0d3960f4fcf6c2c Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 17 Dec 2014 12:05:16 +0000 Subject: [PATCH] Update Csocket to jimloco/Csocket@09b6430dba8eb84cc05699f99d2a009e96686afc Fixes build failures under musl, an alternative libc, due to incompatibilities with GLIBC specific code. Also fixes Issue #776 --- src/Csocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Csocket.cpp b/src/Csocket.cpp index 655f3797..8594bf4c 100644 --- a/src/Csocket.cpp +++ b/src/Csocket.cpp @@ -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