diff options
Diffstat (limited to 'games/wargus/files/patch-wartool.c')
-rw-r--r-- | games/wargus/files/patch-wartool.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/wargus/files/patch-wartool.c b/games/wargus/files/patch-wartool.c new file mode 100644 index 000000000000..7161df10796a --- /dev/null +++ b/games/wargus/files/patch-wartool.c @@ -0,0 +1,20 @@ +--- wartool.c.orig 2010-11-22 22:44:24.000000000 +0100 ++++ wartool.c 2012-05-05 12:37:53.000000000 +0200 +@@ -62,6 +62,8 @@ + #endif + #include <ctype.h> + #include <png.h> ++#include <zlib.h> ++#include <pngpriv.h> + + #include "endian.h" + #include "xmi2mid.h" +@@ -1876,7 +1878,7 @@ + return 1; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + // FIXME: must free buffers!! + png_destroy_write_struct(&png_ptr, &info_ptr); + fclose(fp); |