summaryrefslogtreecommitdiff
path: root/geography/gdal-lib/patches
diff options
context:
space:
mode:
authorwiz <wiz>2011-01-18 09:01:29 +0000
committerwiz <wiz>2011-01-18 09:01:29 +0000
commitae3f84c4bf6114352fda95c458bab8698256d8d5 (patch)
tree2e33183f1ff1c4a738c5565cdee062496dd6714f /geography/gdal-lib/patches
parentcbd6acd7d6026d7c87431cc9830ac7254e943c02 (diff)
downloadpkgsrc-ae3f84c4bf6114352fda95c458bab8698256d8d5.tar.gz
Fix png-1.5 fix. From drochner@
Bump PKGREVISION.
Diffstat (limited to 'geography/gdal-lib/patches')
-rw-r--r--geography/gdal-lib/patches/patch-ab15
1 files changed, 5 insertions, 10 deletions
diff --git a/geography/gdal-lib/patches/patch-ab b/geography/gdal-lib/patches/patch-ab
index d4208ca9862..5a8a934371c 100644
--- a/geography/gdal-lib/patches/patch-ab
+++ b/geography/gdal-lib/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.6 2011/01/17 09:14:15 wiz Exp $
+$NetBSD: patch-ab,v 1.7 2011/01/18 09:01:29 wiz Exp $
Fix build with png-1.5.
@@ -31,20 +31,15 @@ Fix build with png-1.5.
}
/************************************************************************/
-@@ -1338,10 +1338,13 @@ static void png_gdal_error( png_structp
+@@ -1338,10 +1338,10 @@ static void png_gdal_error( png_structp
// libpng is generally not built as C++ and so won't honour unwind
// semantics. Ugg.
- jmp_buf* psSetJmpContext = (jmp_buf*) png_ptr->error_ptr;
-- if (psSetJmpContext)
-+ if (png_jmpbuf(png_ptr))
++ jmp_buf* psSetJmpContext = (jmp_buf*) png_get_error_ptr(png_ptr);
+ if (psSetJmpContext)
{
-- longjmp( *psSetJmpContext, 1 );
-+#if (PNG_LIBPNG_VER < 10500)
-+ longjmp( (jmp_buf*) png_ptr->error_ptr, 1 );
-+#else
-+ png_longjmp (png_ptr, 1);
-+#endif
+ longjmp( *psSetJmpContext, 1 );
}
}