Browse Source

Only use GNU-specific char *strerror on systems with GLIBC

tags/v1.9.9
John Zimmermann Filipe Coelho <falktx@falktx.com> 7 years ago
parent
commit
7015d2076c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/modules/hylia/link/asio/impl/error_code.ipp

+ 1
- 1
source/modules/hylia/link/asio/impl/error_code.ipp View File

@@ -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));


Loading…
Cancel
Save