diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-12-17 06:41:48 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-12-17 06:41:48 +0000 |
commit | eb003dc69ed816f08868ef4ebdac899d013cff72 (patch) | |
tree | 8930e3a503ccbffd09974416a95c3bf69a1d5dfd /main/znc/fix-strerror_r.patch | |
parent | 5b7e2c737d6fd22c20ddc0735494aabf2aefd3fa (diff) | |
download | aports-eb003dc69ed816f08868ef4ebdac899d013cff72.tar.bz2 aports-eb003dc69ed816f08868ef4ebdac899d013cff72.tar.xz |
main/znc: fix musl build
Diffstat (limited to 'main/znc/fix-strerror_r.patch')
-rw-r--r-- | main/znc/fix-strerror_r.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/znc/fix-strerror_r.patch b/main/znc/fix-strerror_r.patch new file mode 100644 index 0000000000..9e3355bc7e --- /dev/null +++ b/main/znc/fix-strerror_r.patch @@ -0,0 +1,11 @@ +--- znc-1.2/src/Csocket.cpp.orig ++++ znc-1.2/src/Csocket.cpp +@@ -613,7 +613,7 @@ + return( strerror( iErrno ) ); + #else + memset( pszBuff, '\0', uBuffLen ); +-#if !defined( _GNU_SOURCE ) ++#if !defined( _GNU_SOURCE ) || !defined(__GLIBC__) + if( strerror_r( iErrno, pszBuff, uBuffLen ) == 0 ) + return( pszBuff ); + #else |