File qemacs-libpng15.patch of Package qemacs

Index: qemacs-0.3.1/html2png.c
===================================================================
--- qemacs-0.3.1.orig/html2png.c
+++ qemacs-0.3.1/html2png.c
@@ -213,7 +213,7 @@ int png_save(QEditScreen *s, const char
     if (!f) 
         goto fail;
 
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
         png_destroy_write_struct(&png_ptr, &info_ptr);
     fail:
         /* free pointers before returning.  Make sure you clean up
@@ -230,10 +230,8 @@ int png_save(QEditScreen *s, const char
     w = s->width;
     h = s->height;
 
-    info_ptr->width = w;
-    info_ptr->height = h;
-    info_ptr->bit_depth = 8;
-    info_ptr->color_type = PNG_COLOR_TYPE_RGB;
+    png_set_IHDR(png_ptr, info_ptr, w, h, 8, PNG_COLOR_TYPE_RGB, 
+                 PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
 
     png_write_info(png_ptr, info_ptr);