$OpenBSD: patch-mapimageio_c,v 1.3 2015/03/28 17:23:23 sthen Exp $

giflib 5.1+

--- mapimageio.c.orig	Sat Mar 28 17:07:24 2015
+++ mapimageio.c	Sat Mar 28 17:07:38 2015
@@ -1303,7 +1303,7 @@ int readGIF(char *path, rasterBufferObj *rb)
 
   } while (recordType != TERMINATE_RECORD_TYPE);
 
-  if (DGifCloseFile(image) == GIF_ERROR) {
+  if (DGifCloseFile(image, NULL) == GIF_ERROR) {
 #if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5
     msSetError(MS_MISCERR,"failed to close gif after loading: %s","readGIF()", gif_error_msg(image->Error));
 #else
