summaryrefslogtreecommitdiff
path: root/graphics/camlimages/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2013-08-30 22:34:51 +0000
committerjoerg <joerg>2013-08-30 22:34:51 +0000
commit995f58e370fc042a0ebe0725cd346dd34ec7ff0e (patch)
tree88b0d6d1fe782db25bf36a5e0fbbbce4b38a0aae /graphics/camlimages/patches
parenta53076a2dafff582c2404b9ad45606d2f186c8b8 (diff)
downloadpkgsrc-995f58e370fc042a0ebe0725cd346dd34ec7ff0e.tar.gz
Fix build with newer giflib.
Diffstat (limited to 'graphics/camlimages/patches')
-rw-r--r--graphics/camlimages/patches/patch-src_gifread.c21
-rw-r--r--graphics/camlimages/patches/patch-src_gifwrite.c30
2 files changed, 51 insertions, 0 deletions
diff --git a/graphics/camlimages/patches/patch-src_gifread.c b/graphics/camlimages/patches/patch-src_gifread.c
new file mode 100644
index 00000000000..3f046c994e9
--- /dev/null
+++ b/graphics/camlimages/patches/patch-src_gifread.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_gifread.c,v 1.1 2013/08/30 22:34:51 joerg Exp $
+
+--- src/gifread.c.orig 2013-08-30 20:40:18.000000000 +0000
++++ src/gifread.c
+@@ -140,7 +140,7 @@ value dGifOpenFileName( value name )
+ GifFileType *GifFile;
+ int i;
+
+- if((GifFile = DGifOpenFileName( String_val(name) )) == NULL){
++ if((GifFile = DGifOpenFileName( String_val(name), NULL )) == NULL){
+ failwith("DGifOpenFileName");
+ }
+
+@@ -200,7 +200,6 @@ value dGifGetLine( value hdl )
+
+ if( DGifGetLine(GifFile, String_val(buf), GifFile->Image.Width )
+ == GIF_ERROR ){
+- PrintGifError ();
+ failwith("DGifGetLine");
+ }
+ CAMLreturn(buf);
diff --git a/graphics/camlimages/patches/patch-src_gifwrite.c b/graphics/camlimages/patches/patch-src_gifwrite.c
new file mode 100644
index 00000000000..a5183be9bc1
--- /dev/null
+++ b/graphics/camlimages/patches/patch-src_gifwrite.c
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_gifwrite.c,v 1.1 2013/08/30 22:34:51 joerg Exp $
+
+--- src/gifwrite.c.orig 2013-08-30 20:37:28.000000000 +0000
++++ src/gifwrite.c
+@@ -52,7 +52,7 @@ ColorMapObject *ColorMapObject_val( valu
+ fprintf(stderr, "Creating map with length = %d ...\n", len);
+ fflush(stderr);
+ */
+- cmapobj = MakeMapObject( len, NULL );
++ cmapobj = GifMakeMapObject( len, NULL );
+ for(i=0; i< len; i++){
+ cmapobj->Colors[i].Red = Int_val(Field(Field(cmap,i),0));
+ cmapobj->Colors[i].Green = Int_val(Field(Field(cmap,i),1));
+@@ -68,7 +68,7 @@ value eGifOpenFileName( name )
+
+ GifFileType *GifFileOut;
+
+- if ((GifFileOut = EGifOpenFileName( String_val( name ), 0) )== NULL) {
++ if ((GifFileOut = EGifOpenFileName( String_val( name ), 0, NULL) )== NULL) {
+ failwith("EGifOpenFileName");
+ }
+ /* gcc -fwritable-strings is required to compile libungif */
+@@ -133,7 +133,6 @@ value eGifPutLine( value oc, value buf )
+
+ if ( EGifPutLine(GifFileOut, String_val(buf), GifFileOut->Image.Width)
+ == GIF_ERROR ){
+- PrintGifError ();
+ failwith("EGifPutLine");
+ }
+ CAMLreturn(Val_unit);