mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-25 05:58:46 +01:00
Merge pull request #159 from b-i-t-n/master
Fixes building on Alpine Linux
This commit is contained in:
@@ -79,7 +79,9 @@ inline void sock_close(SOCKET s)
|
||||
inline const char* sock_strerror(char* buf, size_t len)
|
||||
{
|
||||
buf[0] = '\0';
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || !defined(_GNU_SOURCE) || !defined(__GLIBC__)
|
||||
|
||||
strerror_r(errno, buf, len);
|
||||
return buf;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user