From 5392ada8f445a5ed18ed5808ab9251da95abff86 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Sat, 21 Jan 2017 11:53:53 +0000 Subject: [PATCH] #1273 Thanks to A Wilcox for reporting this and providing the patch. --- include/exiv2/config.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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__