mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
2dbe2887ed
svn path=/nixpkgs/trunk/; revision=33873
28 lines
742 B
Diff
28 lines
742 B
Diff
commit c82aaa4eb1a1c36bf7e2b7ae3c9140d0bf8000b5
|
|
Author: Lawrence D'Oliveiro <ldo@geek-central.gen.nz>
|
|
Date: Wed Jan 26 00:48:37 2011 +0000
|
|
|
|
fix to build against png-1.5 (thanks to Thomas Klausner)
|
|
|
|
diff --git a/src/spuunmux.c b/src/spuunmux.c
|
|
index 5e565d1..9ad2371 100644
|
|
--- a/src/spuunmux.c
|
|
+++ b/src/spuunmux.c
|
|
@@ -39,6 +39,7 @@
|
|
#include <netinet/in.h>
|
|
|
|
#include <png.h>
|
|
+#include <zlib.h>
|
|
|
|
#include "rgb.h"
|
|
#include "common.h"
|
|
@@ -610,7 +611,7 @@ static int write_png
|
|
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
|
|
return -1;
|
|
} /*if*/
|
|
- if (setjmp(png_ptr->jmpbuf))
|
|
+ if (setjmp(png_jmpbuf(png_ptr)))
|
|
{
|
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
|
fclose(fp);
|