summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2015-11-19 22:23:47 +0100
committerThomas Boerger <thomas@webhippie.de>2015-11-19 22:23:47 +0100
commit8f3f91d3db1f740002c2f69327370350753c8851 (patch)
tree2429585390318ccda31ad2f9de530a561d810af3 /src/OSSupport
parentMerge pull request #2451 from cuberite/mobchartoint (diff)
downloadcuberite-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')
-rw-r--r--src/OSSupport/Errors.cpp2
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)