$OpenBSD: patch-coders_png_c,v 1.10 2012/06/19 12:46:12 sthen Exp $
--- coders/png.c.orig	Thu Jun  7 12:50:28 2012
+++ coders/png.c	Mon Jun 18 22:44:21 2012
@@ -2254,7 +2254,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)
   {
