aboutsummaryrefslogtreecommitdiffstats
path: root/main/znc/fix-strerror_r.patch
diff options
context:
space:
mode:
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