$OpenBSD: patch-xwin_c,v 1.2 2014/03/22 01:05:45 sthen Exp $

Fix build with png-1.5.

--- xwin.c.orig	Mon Jul 25 23:03:37 2011
+++ xwin.c	Sat Mar 22 01:04:32 2014
@@ -13,6 +13,7 @@
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
@@ -277,7 +278,7 @@ int write_png(int which,const char *filename)
       fclose(f);
       return 1;
    }
-   if (setjmp(pp->jmpbuf)) {
+   if (setjmp(png_jmpbuf(pp))) {
       png_destroy_write_struct(&pp,&ip);
       fclose(f);
       gdk_image_destroy(image);
