diff options
author | Thomas Boerger <thomas@webhippie.de> | 2015-11-19 22:23:47 +0100 |
---|---|---|
committer | Thomas Boerger <thomas@webhippie.de> | 2015-11-19 22:23:47 +0100 |
commit | 8f3f91d3db1f740002c2f69327370350753c8851 (patch) | |
tree | 2429585390318ccda31ad2f9de530a561d810af3 /src/OSSupport/Errors.cpp | |
parent | Merge pull request #2451 from cuberite/mobchartoint (diff) | |
download | cuberite-8f3f91d3db1f740002c2f69327370350753c8851.tar cuberite-8f3f91d3db1f740002c2f69327370350753c8851.tar.gz cuberite-8f3f91d3db1f740002c2f69327370350753c8851.tar.bz2 cuberite-8f3f91d3db1f740002c2f69327370350753c8851.tar.lz cuberite-8f3f91d3db1f740002c2f69327370350753c8851.tar.xz cuberite-8f3f91d3db1f740002c2f69327370350753c8851.tar.zst cuberite-8f3f91d3db1f740002c2f69327370350753c8851.zip |
Diffstat (limited to 'src/OSSupport/Errors.cpp')
-rw-r--r-- | src/OSSupport/Errors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/Errors.cpp b/src/OSSupport/Errors.cpp index 7fcd3168f..ce2e2acb0 100644 --- a/src/OSSupport/Errors.cpp +++ b/src/OSSupport/Errors.cpp @@ -22,7 +22,7 @@ AString GetOSErrorString( int a_ErrNo) // According to http://linux.die.net/man/3/strerror_r there are two versions of strerror_r(): - #if !defined(__APPLE__) && defined( _GNU_SOURCE) && !defined(ANDROID_NDK) // GNU version of strerror_r() + #if defined(__GLIBC__) && defined( _GNU_SOURCE) && !defined(ANDROID_NDK) // GNU version of strerror_r() char * res = strerror_r( errno, buffer, ARRAYCOUNT(buffer)); if (res != nullptr) |