summaryrefslogtreecommitdiff
blob: 7919fa48dcf2b08fd30de1cde80ab226c6571a6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ac,v 1.1 2011/01/20 23:41:02 wiz Exp $

Fix build with png-1.5.

--- src/screenshot.cpp.orig
+++ src/screenshot.cpp
@@ -159,7 +159,7 @@ Screenshot::save_png(const std::string& 
       return;
     }
 
-  if (setjmp(png_ptr->jmpbuf))
+  if (setjmp(png_jmpbuf(png_ptr)))
     {
       // If we get here, we had a problem reading the file
       fclose(fp);