svn commit: r401358 - head/misc/magicpoint/files
Antoine Brodin
antoine at FreeBSD.org
Thu Nov 12 15:28:51 UTC 2015
Author: antoine
Date: Thu Nov 12 15:28:50 2015
New Revision: 401358
URL: https://svnweb.freebsd.org/changeset/ports/401358
Log:
Allow building with giflib 5.1
PR: 204492
Modified:
head/misc/magicpoint/files/patch-gif.c
Modified: head/misc/magicpoint/files/patch-gif.c
==============================================================================
--- head/misc/magicpoint/files/patch-gif.c Thu Nov 12 15:21:10 2015 (r401357)
+++ head/misc/magicpoint/files/patch-gif.c Thu Nov 12 15:28:50 2015 (r401358)
@@ -120,11 +120,16 @@
exit(-1);
}
}
-@@ -180,7 +229,11 @@ gifLoad(fullname, name, verbose)
+@@ -179,8 +228,16 @@ gifLoad(fullname, name, verbose)
+ pixline[x] = GifRow[x];
}
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++ if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) {
++#else
if (DGifCloseFile(GifFile) == GIF_ERROR) {
- PrintGifError();
++#endif
+#if GIFLIB_MAJOR >= 5
+ localPrintGifError(GifFile->Error);
+#else
@@ -133,7 +138,7 @@
exit(-1);
}
-@@ -196,7 +249,11 @@ gifIdent(fullname, name)
+@@ -196,11 +253,19 @@ gifIdent(fullname, name)
GifFileType *gifp;
int ret;
@@ -145,3 +150,11 @@
if (gifp == NULL)
ret = 0;
else {
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++ DGifCloseFile(gifp, NULL);
++#else
+ DGifCloseFile(gifp);
++#endif
+ tellAboutImage(name);
+ ret = 1;
+ }
More information about the svn-ports-all
mailing list