Files
macports-ports/textproc/rbmake/files/libpng-1.5.patch
Ryan Schmidt e8c2fe6ce2 rbmake: Fix build failures
Fix incompatibility with libpng 1.5 and later (use of the now-private
jmpbuf field).

Closes: https://trac.macports.org/ticket/59554

Fix incompatibility with Xcode 12 and later (implicit declaration of
functions).
2021-01-23 02:35:22 -06:00

24 lines
661 B
Diff

Fix:
error: incomplete definition of type 'struct png_struct_def'
--- lib/pngimage.c.orig 2006-04-21 00:48:54.000000000 -0500
+++ lib/pngimage.c 2021-01-23 02:31:47.000000000 -0600
@@ -35,7 +35,7 @@
return NULL;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
RbImage_setError("setjmp returns error condition");
return NULL;
@@ -101,7 +101,7 @@
return NULL;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
png_destroy_write_struct(&png_ptr, &info_ptr);
RbImage_setError("setjmp returns error condition");
return NULL;