1 $FreeBSD: src/lib/libstand/bzlib.c.diff,v 1.1.2.2 2002/02/18 09:13:03 sobomax Exp $
2 $DragonFly: src/lib/libstand/bzlib.c.diff,v 1.3 2005/06/30 15:55:17 corecode Exp $
4 A patch to avoid linking into libstand compression routines from the bzip2
5 that never being used anyway, while bloat loader(8) by additional 15KB.
7 --- ../../contrib/bzip2-1.0/bzlib.c 2005-02-15 17:24:58.000000000 +0100
8 +++ bzlib.c 2005-06-30 17:45:31.000000000 +0200
11 #include "bzlib_private.h"
13 +#ifndef BZ_NO_COMPRESS
15 /*---------------------------------------------------*/
16 /*--- Compression stuff ---*/
21 +#endif /* BZ_NO_COMPRESS */
23 /*---------------------------------------------------*/
26 if (addr != NULL) free ( addr );
29 +#ifndef BZ_NO_COMPRESS
31 /*---------------------------------------------------*/
37 +#endif /* BZ_NO_COMPRESS */
39 /*---------------------------------------------------*/
40 /*--- Decompression stuff ---*/
45 +#ifndef BZ_NO_COMPRESS
48 /*---------------------------------------------------*/
53 +#endif /* BZ_NO_COMPRESS */
55 /*-------------------------------------------------------------*/
56 /*--- end bzlib.c ---*/