forked from pool/mapserver
f52bfdff10
Fix Tumbleweed and 13.1 builds OBS-URL: https://build.opensuse.org/request/show/358212 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=100
15 lines
597 B
Diff
15 lines
597 B
Diff
--- mapimageio.c.orig 2016-02-05 15:03:30.375271083 +0100
|
|
+++ mapimageio.c 2016-02-05 15:15:29.994938301 +0100
|
|
@@ -1303,7 +1303,11 @@ int readGIF(char *path, rasterBufferObj
|
|
|
|
} while (recordType != TERMINATE_RECORD_TYPE);
|
|
|
|
+#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5 && defined GIFLIB_MINOR && GIFLIB_MINOR >= 1
|
|
+ if (DGifCloseFile(image, &errcode) == GIF_ERROR) {
|
|
+#else
|
|
if (DGifCloseFile(image) == GIF_ERROR) {
|
|
+#endif
|
|
#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5
|
|
msSetError(MS_MISCERR,"failed to close gif after loading: %s","readGIF()", gif_error_msg(image->Error));
|
|
#else
|