ports/print/hp2xx/files/patch-png.c
Muhammad Moinur Rahman a394e0cd6d print/hp2xx: Optionize INFO
- Utilize USES=localbase
- Pet portclippy
2023-10-24 15:08:27 +02:00

19 lines
378 B
C

--- png.c.orig 2003-06-21 15:31:51 UTC
+++ png.c
@@ -6,6 +6,7 @@
#include <stdlib.h>
#include "to_png.h"
#include <png.h>
+#include <zlib.h>
#define PDNCOL 256
@@ -36,7 +37,7 @@ FILE *fd;
}
/* set up error handlimg for libpng */
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
png_destroy_write_struct(&png_ptr, &info_ptr);
return;
}