Fix:maptool:Fixed building of maptool without optimizations (-O0)
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 24 Jan 2011 23:58:21 +0000 (23:58 +0000)
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 24 Jan 2011 23:58:21 +0000 (23:58 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4003 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/maptool/zip.c

index 64f5709..c6fa528 100644 (file)
@@ -31,6 +31,7 @@
 #include <openssl/rand.h>
 #endif
 
+#ifdef HAVE_ZLIB
 static int
 compress2_int(Byte *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
 {
@@ -60,6 +61,7 @@ compress2_int(Byte *dest, uLongf *destLen, const Bytef *source, uLong sourceLen,
        err = deflateEnd(&stream);
        return err;
 }
+#endif
 
 void
 write_zipmember(struct zip_info *zip_info, char *name, int filelen, char *data, int data_size)