summaryrefslogtreecommitdiffstats
path: root/src/ocaml-camlimages-1-fixes.patch
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-07-17 02:29:24 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-07-17 02:29:24 (GMT)
commit25714a0765a088d78d24c79c99c4667c61af3c73 (patch)
tree8faeb8c1c822a1391d1989a5180104217097aa95 /src/ocaml-camlimages-1-fixes.patch
parenta4a33f258102d28efa209dfc72bd06a7c5cc858a (diff)
downloadmxe-25714a0765a088d78d24c79c99c4667c61af3c73.zip
mxe-25714a0765a088d78d24c79c99c4667c61af3c73.tar.gz
mxe-25714a0765a088d78d24c79c99c4667c61af3c73.tar.bz2
ocaml-camlimages: fix for giflib >=5.1
Diffstat (limited to 'src/ocaml-camlimages-1-fixes.patch')
-rw-r--r--src/ocaml-camlimages-1-fixes.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ocaml-camlimages-1-fixes.patch b/src/ocaml-camlimages-1-fixes.patch
index 4f87fa5..95a2f83 100644
--- a/src/ocaml-camlimages-1-fixes.patch
+++ b/src/ocaml-camlimages-1-fixes.patch
@@ -2381,3 +2381,35 @@ index e1b1c18..5994beb 100644
--
1.7.2.5
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore <tonyt@logyst.com>
+Date: Sun, 17 Jul 2016 12:16:43 +1000
+Subject: [PATCH] fix for giflib >=5.1
+
+
+diff --git a/src/gifread.c b/src/gifread.c
+index 1111111..2222222 100644
+--- a/src/gifread.c
++++ b/src/gifread.c
+@@ -161,7 +161,7 @@ value dGifCloseFile( value hdl )
+ segmentation faults */
+ ((GifFileType *)hdl)->Image.ColorMap = NULL;
+
+- DGifCloseFile( (GifFileType *) hdl );
++ DGifCloseFile( (GifFileType *) hdl, NULL );
+ CAMLreturn(Val_unit);
+ }
+
+diff --git a/src/gifwrite.c b/src/gifwrite.c
+index 1111111..2222222 100644
+--- a/src/gifwrite.c
++++ b/src/gifwrite.c
+@@ -88,7 +88,7 @@ value eGifCloseFile( value hdl )
+ segmentation faults */
+ ((GifFileType *)hdl)->Image.ColorMap = NULL;
+
+- EGifCloseFile( (GifFileType *) hdl );
++ EGifCloseFile( (GifFileType *) hdl, NULL );
+ CAMLreturn(Val_unit);
+ }
+