Do not change the code path for glibc by using a macro MUSL_LIBC which is defined only if target is *-musl.
11 lines
521 B
Diff
11 lines
521 B
Diff
--- 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));
|