aboutsummaryrefslogtreecommitdiffstats
path: root/main/znc/fix-strerror_r.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-17 06:41:48 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-17 06:41:48 +0000
commiteb003dc69ed816f08868ef4ebdac899d013cff72 (patch)
tree8930e3a503ccbffd09974416a95c3bf69a1d5dfd /main/znc/fix-strerror_r.patch
parent5b7e2c737d6fd22c20ddc0735494aabf2aefd3fa (diff)
downloadaports-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.patch11
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