Initial import from FreeBSD RELENG_4:
[games.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
3 A patch to avoid linking into libstand compression routines from the bzip2
4 that never being used anyway, while bloat loader(8) by additional 15KB.
5
6 --- _bzlib.c    2001/09/13 12:20:50     1.1
7 +++ _bzlib.c    2001/09/13 12:29:24
8 @@ -73,8 +73,9 @@
9          bzBuffToBuffDecompress.  Fixed.
10  --*/
11  
12 -#include "bzlib_private.h"
13 +#include "_bzlib_private.h"
14  
15 +#ifndef BZ_NO_COMPRESS
16  
17  /*---------------------------------------------------*/
18  /*--- Compression stuff                           ---*/
19 @@ -130,6 +131,7 @@
20  }
21  #endif
22  
23 +#endif /* BZ_NO_COMPRESS */
24  
25  /*---------------------------------------------------*/
26  static
27 @@ -156,6 +158,7 @@
28     if (addr != NULL) free ( addr );
29  }
30  
31 +#ifndef BZ_NO_COMPRESS
32  
33  /*---------------------------------------------------*/
34  static
35 @@ -528,6 +531,7 @@
36     return BZ_OK;
37  }
38  
39 +#endif /* BZ_NO_COMPRESS */
40  
41  /*---------------------------------------------------*/
42  /*--- Decompression stuff                         ---*/
43 @@ -898,6 +902,7 @@
44     return BZ_OK;
45  }
46  
47 +#ifndef BZ_NO_COMPRESS
48  
49  #ifndef BZ_NO_STDIO
50  /*---------------------------------------------------*/
51 @@ -1587,6 +1592,7 @@
52  }
53  #endif
54  
55 +#endif /* BZ_NO_COMPRESS */
56  
57  /*-------------------------------------------------------------*/
58  /*--- end                                           bzlib.c ---*/