From 49ac6b92267db8122c519b45316c492adfad47f0 Mon Sep 17 00:00:00 2001 From: mickey Date: Thu, 23 Jan 1997 08:48:45 +0000 Subject: [PATCH] add NO_DEFLATE condition to be used in /boot --- sys/net/zlib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/zlib.c b/sys/net/zlib.c index 00b5f688517..5f087a54b40 100644 --- a/sys/net/zlib.c +++ b/sys/net/zlib.c @@ -137,6 +137,8 @@ typedef uLong (*check_func) OF((uLong check, Bytef *buf, uInt len)); (*((strm)->zfree))((strm)->opaque, (voidpf)(addr), (size)) #define TRY_FREE(s, p, n) {if (p) ZFREE(s, p, n);} +#ifndef NO_DEFLATE + /* deflate.h -- internal compression state * Copyright (C) 1995 Jean-loup Gailly * For conditions of distribution and use, see copyright notice in zlib.h @@ -422,7 +424,6 @@ local void ct_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, int eof)); local void ct_stored_type_only OF((deflate_state *s)); - /*+++++*/ /* deflate.c -- compress data using the deflation algorithm * Copyright (C) 1995 Jean-loup Gailly. @@ -2602,7 +2603,7 @@ local void copy_block(s, buf, len, header) put_byte(s, *buf++); } } - +#endif /* NO_DEFLATE */ /*+++++*/ /* infblock.h -- header to use infblock.c -- 2.20.1