summaryrefslogtreecommitdiff
path: root/ham/fldigi/patches/patch-ab
blob: 42395360a1066da08e74e9483e3c3cc62bd22c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ab,v 1.2 2010/06/13 22:44:47 wiz Exp $

--- src/widgets/picture.cxx.orig	2008-09-14 13:26:15.000000000 +0000
+++ src/widgets/picture.cxx
@@ -31,8 +31,10 @@
 #include <FL/fl_ask.H>
 
 #if USE_LIBJPEG
+extern "C" {
 #  include <cstdio>
 #  include <jpeglib.h>
+}
 #endif
 #if USE_LIBPNG
 #  include <png.h>
@@ -317,7 +319,7 @@ int picture::save_png(const char* filena
 		return -1;
 	}
 	if ((info = png_create_info_struct(png)) == NULL) {
-		png_destroy_write_struct(&png, png_infopp_NULL);
+		png_destroy_write_struct(&png, NULL);
 		fclose(fp);
 		return -1;
 	}