bzip2: Bump WARNS to 3.
[dragonfly.git] / lib / libstand / bzlib.c.diff
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 $
3
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.
6
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 @@
10  
11  #include "bzlib_private.h"
12  
13 +#ifndef BZ_NO_COMPRESS
14  
15  /*---------------------------------------------------*/
16  /*--- Compression stuff                           ---*/
17 @@ -130,6 +131,7 @@
18  }
19  #endif
20  
21 +#endif /* BZ_NO_COMPRESS */
22  
23  /*---------------------------------------------------*/
24  static
25 @@ -156,6 +158,7 @@
26     if (addr != NULL) free ( addr );
27  }
28  
29 +#ifndef BZ_NO_COMPRESS
30  
31  /*---------------------------------------------------*/
32  static
33 @@ -528,6 +531,7 @@
34     return BZ_OK;
35  }
36  
37 +#endif /* BZ_NO_COMPRESS */
38  
39  /*---------------------------------------------------*/
40  /*--- Decompression stuff                         ---*/
41 @@ -921,6 +925,7 @@
42     return BZ_OK;
43  }
44  
45 +#ifndef BZ_NO_COMPRESS
46  
47  #ifndef BZ_NO_STDIO
48  /*---------------------------------------------------*/
49 @@ -1610,6 +1615,7 @@
50  }
51  #endif
52  
53 +#endif /* BZ_NO_COMPRESS */
54  
55  /*-------------------------------------------------------------*/
56  /*--- end                                           bzlib.c ---*/