summaryrefslogtreecommitdiff
path: root/graphics/ImageMagick/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ImageMagick/patches/patch-ac')
-rw-r--r--graphics/ImageMagick/patches/patch-ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/ImageMagick/patches/patch-ac b/graphics/ImageMagick/patches/patch-ac
new file mode 100644
index 00000000000..e88a0674840
--- /dev/null
+++ b/graphics/ImageMagick/patches/patch-ac
@@ -0,0 +1,24 @@
+$NetBSD: patch-ac,v 1.14 2006/05/03 22:57:22 wiz Exp $
+
+--- coders/png.c.orig 2006-04-07 02:33:15.000000000 +0000
++++ coders/png.c
+@@ -1755,7 +1755,7 @@ static Image *ReadOnePNGImage(MngInfo *m
+ #if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
+ && (PNG_LIBPNG_VER >= 10200)
+ /* Disable thread-unsafe features of pnggccrd */
+- if (png_access_version() >= 10200)
++ if (png_access_version_number() >= 10200)
+ {
+ png_uint_32 mmx_disable_mask=0;
+ png_uint_32 asm_flags;
+@@ -1764,8 +1764,8 @@ static Image *ReadOnePNGImage(MngInfo *m
+ | PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
+ | PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
+ | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
+- asm_flags=png_get_asm_flags(png_ptr);
+- png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
++ asm_flags=png_get_asm_flags(ping);
++ png_set_asm_flags(ping, asm_flags & ~mmx_disable_mask);
+ }
+ #endif
+