patch-src_pilot-read-screenshot_c 810 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-src_pilot-read-screenshot_c,v 1.3 2015/09/21 08:46:50 ajacoutot Exp $
  2. Fix build with png-1.5.
  3. --- src/pilot-read-screenshot.c.orig Thu Jun 4 07:26:19 2009
  4. +++ src/pilot-read-screenshot.c Mon Jul 4 15:50:37 2011
  5. @@ -40,10 +40,6 @@
  6. #ifdef HAVE_PNG
  7. # include "png.h"
  8. -# if (PNG_LIBPNG_VER < 10201)
  9. -# define png_voidp_NULL (png_voidp)NULL
  10. -# define png_error_ptr_NULL (png_error_ptr)NULL
  11. -# endif
  12. #endif
  13. #define pi_mktag(c1,c2,c3,c4) (((c1)<<24)|((c2)<<16)|((c3)<<8)|(c4))
  14. @@ -87,8 +83,8 @@ void write_png ( char *fname, struct ss_state *state )
  15. gray_buf = malloc( state->w );
  16. png_ptr = png_create_write_struct
  17. - (PNG_LIBPNG_VER_STRING, png_voidp_NULL,
  18. - png_error_ptr_NULL, png_error_ptr_NULL);
  19. + (PNG_LIBPNG_VER_STRING, NULL,
  20. + NULL, NULL);
  21. if (!png_ptr)
  22. return;