head 1.2; access; symbols pkgsrc-2014Q3:1.1.0.4 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.2 pkgsrc-2014Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2014.10.10.01.13.58; author wen; state dead; branches; next 1.1; commitid 5VS0S7uvfhQ6LATx; 1.1 date 2014.05.23.13.04.10; author obache; state Exp; branches; next ; commitid JhpWl2skkyU1cFBx; desc @@ 1.2 log @Update to 1.11.1 Upstream changes please visit: http://trac.osgeo.org/gdal/wiki/Release/1.11.1-News Reviewed by: wiz@@ @ text @$NetBSD: patch-frmts_gif_gifabstractdataset.cpp,v 1.1 2014/05/23 13:04:10 obache Exp $ * giflib>=5.1 API change --- frmts/gif/gifabstractdataset.cpp.orig 2012-10-09 00:58:25.000000000 +0000 +++ frmts/gif/gifabstractdataset.cpp @@@@ -82,7 +82,12 @@@@ GIFAbstractDataset::~GIFAbstractDataset( } if( hGifFile ) +#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && \ + (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5) + DGifCloseFile( hGifFile, NULL ); +#else DGifCloseFile( hGifFile ); +#endif if( fp != NULL ) VSIFCloseL( fp ); @ 1.1 log @Fixes build with giflib>=5.1. @ text @d1 1 a1 1 $NetBSD$ @