void-packages/srcpkgs/asio/patches/musl_strerror_r.patch

12 lines
521 B
Diff
Raw Normal View History

--- include/asio/impl/error_code.ipp 2015-03-23 21:28:30.000000000 +0100
+++ include/asio/impl/error_code.ipp 2015-07-12 14:49:24.720507062 +0200
@@ -100,7 +100,7 @@
#elif defined(__MACH__) && defined(__APPLE__) \
|| defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) \
|| defined(_AIX) || defined(__hpux) || defined(__osf__) \
- || defined(__ANDROID__)
+ || defined(__ANDROID__) || defined(MUSL_LIBC)
char buf[256] = "";
using namespace std;
strerror_r(value, buf, sizeof(buf));