openbsd-ports/graphics/ImageMagick/patches/patch-coders_png_c
okan 62e5afbda7 - update to 6.4.5-6 (for real this time) and sync patches
- explicitly disable lqr (experimental liquid rescale)
- fix for building no_x11 FLAVOR with ImageMagick already installed

noticed by and previous ok kili@, ok naddy@
2008-11-29 05:00:20 +00:00

13 lines
666 B
Plaintext

$OpenBSD: patch-coders_png_c,v 1.7 2008/11/29 05:00:20 okan Exp $
--- coders/png.c.orig Tue Nov 11 20:58:15 2008
+++ coders/png.c Thu Nov 20 14:38:55 2008
@@ -1783,7 +1783,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
png_set_read_user_chunk_fn(ping, image, read_vpag_chunk_callback);
#endif
-#if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) && (PNG_LIBPNG_VER >= 10200) && defined(__i386__)
+#if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) && (PNG_LIBPNG_VER >= 10200) && defined(PNG_MMX_CODE_SUPPORTED)
/* Disable thread-unsafe features of pnggccrd */
if (png_access_version_number() >= 10200)
{