1
0
Fork 0

Check for __GLIBC__ to detect correct strerror_r version

This commit is contained in:
Thomas Boerger 2015-11-19 22:23:47 +01:00
parent 3955742e2f
commit 8f3f91d3db
1 changed files with 1 additions and 1 deletions

View File

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