Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[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.2 2003/06/17 04:26:51 dillon 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 --- _bzlib.c    2001/09/13 12:20:50     1.1
8 +++ _bzlib.c    2001/09/13 12:29:24
9 @@ -73,8 +73,9 @@
10          bzBuffToBuffDecompress.  Fixed.
11  --*/
12  
13 -#include "bzlib_private.h"
14 +#include "_bzlib_private.h"
15  
16 +#ifndef BZ_NO_COMPRESS
17  
18  /*---------------------------------------------------*/
19  /*--- Compression stuff                           ---*/
20 @@ -130,6 +131,7 @@
21  }
22  #endif
23  
24 +#endif /* BZ_NO_COMPRESS */
25  
26  /*---------------------------------------------------*/
27  static
28 @@ -156,6 +158,7 @@
29     if (addr != NULL) free ( addr );
30  }
31  
32 +#ifndef BZ_NO_COMPRESS
33  
34  /*---------------------------------------------------*/
35  static
36 @@ -528,6 +531,7 @@
37     return BZ_OK;
38  }
39  
40 +#endif /* BZ_NO_COMPRESS */
41  
42  /*---------------------------------------------------*/
43  /*--- Decompression stuff                         ---*/
44 @@ -898,6 +902,7 @@
45     return BZ_OK;
46  }
47  
48 +#ifndef BZ_NO_COMPRESS
49  
50  #ifndef BZ_NO_STDIO
51  /*---------------------------------------------------*/
52 @@ -1587,6 +1592,7 @@
53  }
54  #endif
55  
56 +#endif /* BZ_NO_COMPRESS */
57  
58  /*-------------------------------------------------------------*/
59  /*--- end                                           bzlib.c ---*/