patch-xwin_c 580 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-xwin_c,v 1.2 2014/03/22 01:05:45 sthen Exp $
  2. Fix build with png-1.5.
  3. --- xwin.c.orig Mon Jul 25 23:03:37 2011
  4. +++ xwin.c Sat Mar 22 01:04:32 2014
  5. @@ -13,6 +13,7 @@
  6. #include <math.h>
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. +#include <string.h>
  10. #include <gtk/gtk.h>
  11. #include <gdk/gdkkeysyms.h>
  12. @@ -277,7 +278,7 @@ int write_png(int which,const char *filename)
  13. fclose(f);
  14. return 1;
  15. }
  16. - if (setjmp(pp->jmpbuf)) {
  17. + if (setjmp(png_jmpbuf(pp))) {
  18. png_destroy_write_struct(&pp,&ip);
  19. fclose(f);
  20. gdk_image_destroy(image);