Fixes building on Alpine Linux

This commit is contained in:
b-i-t-n
2017-06-15 21:19:34 +10:00
parent d0f991c81a
commit e9a72c4af1
+1 -1
View File
@@ -76,7 +76,7 @@ inline void sock_close(SOCKET s)
inline const char* sock_strerror(char* buf, size_t len)
{
buf[0] = '\0';
#if defined(__APPLE__)
#if defined(__APPLE__) || defined(__FreeBSD__) || !defined(_GNU_SOURCE) || !defined(__GLIBC__)
strerror_r(errno, buf, len);
return buf;
#else