eed7c62887
All fixes by yours truly.
25 lines
782 B
Plaintext
25 lines
782 B
Plaintext
$OpenBSD: patch-src_xsane-save_c,v 1.1 2011/07/08 20:38:01 naddy Exp $
|
|
|
|
Fix build with png-1.5.
|
|
|
|
--- src/xsane-save.c.orig Wed Jul 6 11:21:42 2011
|
|
+++ src/xsane-save.c Wed Jul 6 11:22:16 2011
|
|
@@ -4910,7 +4910,7 @@ int xsane_save_png(FILE *outfile, int compression, FIL
|
|
return -1; /* error */
|
|
}
|
|
|
|
- if (setjmp(png_ptr->jmpbuf))
|
|
+ if (setjmp(png_jmpbuf(png_ptr)))
|
|
{
|
|
snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
|
|
xsane_back_gtk_error(buf, TRUE);
|
|
@@ -5100,7 +5100,7 @@ int xsane_save_png_16(FILE *outfile, int compression,
|
|
return -1; /* error */
|
|
}
|
|
|
|
- if (setjmp(png_ptr->jmpbuf))
|
|
+ if (setjmp(png_jmpbuf(png_ptr)))
|
|
{
|
|
snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
|
|
xsane_back_gtk_error(buf, TRUE);
|