From e9a72c4af14faa8f3ca53c82f18c02598adec948 Mon Sep 17 00:00:00 2001 From: b-i-t-n Date: Thu, 15 Jun 2017 21:19:34 +1000 Subject: [PATCH] Fixes building on Alpine Linux --- socks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socks.h b/socks.h index 7768706..5a30e58 100644 --- a/socks.h +++ b/socks.h @@ -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