diff --git a/include/exiv2/config.h b/include/exiv2/config.h index 7dc3357a..83fef53e 100644 --- a/include/exiv2/config.h +++ b/include/exiv2/config.h @@ -150,11 +150,9 @@ typedef int pid_t; ///// Start of platform marcos ///////// // Linux GCC 4.8 appears to be confused about strerror_r -#ifndef EXV_STRERROR_R_CHAR_P -#ifdef __gnu_linux__ +#if !defined(EXV_STRERROR_R_CHAR_P) && defined( __gnu_linux__) && defined(__GLIBC__) #define EXV_STRERROR_R_CHAR_P #endif -#endif #if defined(__MINGW32__) || defined(__MINGW64__) # ifndef __MING__