aboutsummaryrefslogtreecommitdiff
path: root/textproc/gladtex
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2015-11-12 18:35:53 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2015-11-12 18:35:53 +0000
commitc905c203db0c9756a47ecca2243013bfa462026d (patch)
tree07ffa1194a060dd6c8f50a2046c9b422bc054830 /textproc/gladtex
parentf44de4a8d49fd8ce374780f235c163a9d3d9cd1a (diff)
downloadports-c905c203db0c9756a47ecca2243013bfa462026d.tar.gz
ports-c905c203db0c9756a47ecca2243013bfa462026d.zip
Allow building with giflib 5.1
PR: 204492
Notes
Notes: svn path=/head/; revision=401387
Diffstat (limited to 'textproc/gladtex')
-rw-r--r--textproc/gladtex/files/patch-eqn2img.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/textproc/gladtex/files/patch-eqn2img.c b/textproc/gladtex/files/patch-eqn2img.c
index 1f7b034e9144..1b663c49a60b 100644
--- a/textproc/gladtex/files/patch-eqn2img.c
+++ b/textproc/gladtex/files/patch-eqn2img.c
@@ -50,7 +50,19 @@
/* EGifSetGifVersion("89a"); this causes segfault (but is really required for transparency, I think) */
EGifPutScreenDesc(fp, width, height, 256, 255, color_map);
-@@ -715,7 +727,7 @@ int to_ps(char *basename, int verbose) {
+@@ -649,7 +661,11 @@ int gif_write(png_bytepp image, char *im
+ return -1;
+ }
+
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++ EGifCloseFile(fp, NULL);
++#else
+ EGifCloseFile(fp);
++#endif
+
+ return 0;
+ }
+@@ -715,7 +731,7 @@ int to_ps(char *basename, int verbose) {
fprintf(stderr, " -> ps");
cmd = NEW(char, 2*strlen(basename) + 46);