drm/radeon: Move some prototype declarations
[dragonfly.git] / lib / libstand / bzlib.c.diff
blob803ab158712274d6fc4ae0ca4f4e300b44787a42
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
9 @@ -75,6 +75,7 @@
11 #include "bzlib_private.h"
13 +#ifndef BZ_NO_COMPRESS
15 /*---------------------------------------------------*/
16 /*--- Compression stuff ---*/
17 @@ -130,6 +131,7 @@
19 #endif
21 +#endif /* BZ_NO_COMPRESS */
23 /*---------------------------------------------------*/
24 static
25 @@ -156,6 +158,7 @@
26 if (addr != NULL) free ( addr );
29 +#ifndef BZ_NO_COMPRESS
31 /*---------------------------------------------------*/
32 static
33 @@ -528,6 +531,7 @@
34 return BZ_OK;
37 +#endif /* BZ_NO_COMPRESS */
39 /*---------------------------------------------------*/
40 /*--- Decompression stuff ---*/
41 @@ -921,6 +925,7 @@
42 return BZ_OK;
45 +#ifndef BZ_NO_COMPRESS
47 #ifndef BZ_NO_STDIO
48 /*---------------------------------------------------*/
49 @@ -1610,6 +1615,7 @@
51 #endif
53 +#endif /* BZ_NO_COMPRESS */
55 /*-------------------------------------------------------------*/
56 /*--- end bzlib.c ---*/