diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-04-03 13:06:14 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-04-03 13:06:14 +0800 |
commit | 111aed9daf34176a0a5732a1464bae2cd7550735 (patch) | |
tree | 2312aeec8821e5fb551bf4a07a1fb9981a022afa /multimedia | |
parent | e9205a2a069de59b34d33c92be505be0407b5418 (diff) | |
download | freebsd-ports-gnome-111aed9daf34176a0a5732a1464bae2cd7550735.tar.gz freebsd-ports-gnome-111aed9daf34176a0a5732a1464bae2cd7550735.tar.zst freebsd-ports-gnome-111aed9daf34176a0a5732a1464bae2cd7550735.zip |
- fix build for png-1.4.1
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libkate/files/patch-tools-kpng.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/multimedia/libkate/files/patch-tools-kpng.c b/multimedia/libkate/files/patch-tools-kpng.c new file mode 100644 index 000000000000..d58b8a4c5415 --- /dev/null +++ b/multimedia/libkate/files/patch-tools-kpng.c @@ -0,0 +1,36 @@ +--- tools/kpng.c.orig 2008-08-06 09:06:13.000000000 +0200 ++++ tools/kpng.c 2010-03-29 09:32:32.000000000 +0200 +@@ -179,13 +179,13 @@ + } + } + +- png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr,&info_ptr,NULL); + fclose(f); + + return 0; + + error: +- if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL); ++ if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL); + if (f) fclose(f); + return -1; + } +@@ -224,7 +224,7 @@ + if (w) *w=png_get_image_width(png_ptr,info_ptr); + if (h) *h=png_get_image_height(png_ptr,info_ptr); + +- png_destroy_read_struct(&png_ptr,&info_ptr,png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr,&info_ptr,NULL); + + /* now read the whole file as a binary blob */ + fseek(f,0,SEEK_END); +@@ -241,7 +241,7 @@ + return 0; + + error: +- if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:png_infopp_NULL,png_infopp_NULL); ++ if (png_ptr) png_destroy_read_struct(&png_ptr,info_ptr?&info_ptr:NULL,NULL); + if (f) fclose(f); + return -1; + } |