aboutsummaryrefslogtreecommitdiff
path: root/graphics/swftools
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-06-03 04:48:40 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-06-03 04:48:40 +0000
commit4812598a539d066b1edf7c36055b163ca1207256 (patch)
tree2fcacbcd4b3ff75b168253fc908d3e8fc3bb80be /graphics/swftools
parent3f4bbea12b08c37c45a6c0e538b6c2bd7f922f24 (diff)
downloadports-4812598a539d066b1edf7c36055b163ca1207256.tar.gz
ports-4812598a539d066b1edf7c36055b163ca1207256.zip
- fix build with giflib 4.2.0
Notes
Notes: svn path=/head/; revision=298049
Diffstat (limited to 'graphics/swftools')
-rw-r--r--graphics/swftools/files/patch-gif2swf.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/swftools/files/patch-gif2swf.c b/graphics/swftools/files/patch-gif2swf.c
new file mode 100644
index 000000000000..742c03f55bdb
--- /dev/null
+++ b/graphics/swftools/files/patch-gif2swf.c
@@ -0,0 +1,37 @@
+--- src/gif2swf.c.orig 2011-01-02 04:30:29.000000000 +0100
++++ src/gif2swf.c 2012-06-03 06:43:44.000000000 +0200
+@@ -65,6 +65,16 @@
+ RESTORE_TO_PREVIOUS
+ };
+
++static void
++localPrintGifError(void)
++{
++ char *Err = GifErrorString();
++
++ if (Err != NULL)
++ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
++ else
++ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError());
++}
+
+ void SetFrameAction(TAG ** t, const char *src, int ver)
+ {
+@@ -236,7 +246,7 @@
+ }
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ localPrintGifError();
+ return t;
+ }
+
+@@ -499,7 +509,7 @@
+ global.max_image_height = gft->SHeight;
+
+ if (DGifSlurp(gft) != GIF_OK) {
+- PrintGifError();
++ localPrintGifError();
+ return -1;
+ }
+ // After DGifSlurp() call, gft->ImageCount become available