$OpenBSD: patch-src_mpng_c,v 1.1 2011/07/08 20:38:00 naddy Exp $

Fix build with png-1.5.

--- src/mpng.c.orig	Sun Feb 17 15:04:50 2008
+++ src/mpng.c	Thu Jul  7 09:25:44 2011
@@ -83,7 +83,7 @@ png_uint_32 png_row_bytes;
     display_depth = XDefaultDepth(display,XDefaultScreen(display));
 
     fread(sig, 1, 8, ifile);
-    if (!png_check_sig(sig, 8)){
+    if (png_sig_cmp(sig, 0, 8)){
       fclose(ifile);
       return -1;
     }
@@ -113,7 +113,7 @@ png_uint_32 png_row_bytes;
 
     if (png_depth < 8){
       if (png_color_type == PNG_COLOR_TYPE_GRAY ){
-        png_set_gray_1_2_4_to_8(png_ptr);
+        png_set_expand_gray_1_2_4_to_8(png_ptr);
         png_row_bytes = png_width;
       }else{
         png_set_expand(png_ptr);
