summaryrefslogtreecommitdiffstats
path: root/main/znc/fix-strerror_r.patch
blob: 9e3355bc7e722a651ea8d36215bbcb9590cab60f (plain)
1
2
3
4
5
6
7
8
9
10
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