]> granicus.if.org Git - imagemagick/commitdiff
Fixed builds that don't link zlib.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 4 Feb 2018 10:00:27 +0000 (11:00 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 4 Feb 2018 10:00:27 +0000 (11:00 +0100)
MagickCore/blob.c

index a05065c02bf96dd3a81ee5d119414d09fa65e06b..5593a0f5ba030e4fec5545f68113ae8a0c68a285 100644 (file)
@@ -2728,6 +2728,7 @@ MagickExport MagickBooleanType IsBlobSeekable(const Image *image)
     }
     case ZipStream:
     {
+#if defined(MAGICKCORE_ZLIB_DELEGATE)
       int
         status;
 
@@ -2735,6 +2736,9 @@ MagickExport MagickBooleanType IsBlobSeekable(const Image *image)
         return(MagickFalse);
       status=gzseek(blob_info->file_info.gzfile,0,SEEK_CUR);
       return(status == -1 ? MagickFalse : MagickTrue);
+#else
+      break;
+#endif
     }
     case UndefinedStream:
     case BZipStream: