summaryrefslogtreecommitdiff
path: root/sys/net/zlib.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-23 08:48:46 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-23 08:48:46 +0000
commit5698b36e21c8b7a4f977cf434c8c491e3c7f2d96 (patch)
tree3819d06b14512a337be8d00d8acd56f796b3c0a1 /sys/net/zlib.c
parent3d90d941aeca1464770b060c933450a774164a45 (diff)
add NO_DEFLATE condition to be used in /boot
Diffstat (limited to 'sys/net/zlib.c')
-rw-r--r--sys/net/zlib.c5
1 files 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