From 7015d2076cfe8fa150d6e7e1e2213e43d61d36a5 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Mon, 18 Jun 2018 10:23:26 +0000 Subject: [PATCH] Only use GNU-specific char *strerror on systems with GLIBC --- source/modules/hylia/link/asio/impl/error_code.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/modules/hylia/link/asio/impl/error_code.ipp b/source/modules/hylia/link/asio/impl/error_code.ipp index b996773cf..46c720916 100644 --- a/source/modules/hylia/link/asio/impl/error_code.ipp +++ b/source/modules/hylia/link/asio/impl/error_code.ipp @@ -101,7 +101,7 @@ public: #elif defined(__MACH__) && defined(__APPLE__) \ || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) \ || defined(_AIX) || defined(__hpux) || defined(__osf__) \ - || defined(__ANDROID__) + || defined(__ANDROID__) || (defined(__linux__) && !defined(__GLIBC__)) char buf[256] = ""; using namespace std; strerror_r(value, buf, sizeof(buf));