--- magick/exception.c 2011-09-06 15:31:15.000000000 +0200 +++ magick/exception.c 2011-09-06 17:11:20.000000000 +0200 @@ -458,7 +458,11 @@ MagickExport char *GetExceptionMessage(c exception[MaxTextExtent]; #if defined(MAGICKCORE_HAVE_STRERROR_R) - (void) strerror_r(error,exception,sizeof(exception)); + #if !defined(_GNU_SOURCE) + (void) strerror_r(error,exception,sizeof(exception)); + #else + (void) CopyMagickString(exception,strerror_r(error, exception, sizeof(exception)),sizeof(exception)); + #endif #else (void) CopyMagickString(exception,strerror(error),sizeof(exception)); #endif