openbsd-ports/graphics/ImageMagick/patches/patch-coders_png_c
kili e992b5ed39 Update to ImageMagick-6.6.6-10, with help from Brad.
An update to a more recent version (6.7.*) will follow soon.

This helps naddy with the png update.
2011-07-06 22:43:00 +00:00

13 lines
611 B
Plaintext

$OpenBSD: patch-coders_png_c,v 1.8 2011/07/06 22:43:00 kili Exp $
--- coders/png.c.orig Fri Dec 24 19:00:33 2010
+++ coders/png.c Sat Jan 1 23:06:23 2011
@@ -1786,7 +1786,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
#if (PNG_LIBPNG_VER < 10400)
# if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) && \
- (PNG_LIBPNG_VER >= 10200) && (PNG_LIBPNG_VER < 10220) && defined(__i386__)
+ (PNG_LIBPNG_VER >= 10200) && (PNG_LIBPNG_VER < 10220) && defined(PNG_MMX_CODE_SUPPORTED)
/* Disable thread-unsafe features of pnggccrd */
if (png_access_version_number() >= 10200)
{