Use CSTD and remove local CSTD settings which are no longer needed.
[dragonfly.git] / lib / libstand / bzlib.c.diff
CommitLineData
984263bc 1$FreeBSD: src/lib/libstand/bzlib.c.diff,v 1.1.2.2 2002/02/18 09:13:03 sobomax Exp $
8b980e40 2$DragonFly: src/lib/libstand/bzlib.c.diff,v 1.3 2005/06/30 15:55:17 corecode Exp $
984263bc
MD
3
4A patch to avoid linking into libstand compression routines from the bzip2
5that never being used anyway, while bloat loader(8) by additional 15KB.
6
8b980e40
SS
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 @@
984263bc 10
8b980e40 11 #include "bzlib_private.h"
984263bc
MD
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 ---*/
8b980e40 41@@ -921,6 +925,7 @@
984263bc
MD
42 return BZ_OK;
43 }
44
45+#ifndef BZ_NO_COMPRESS
46
47 #ifndef BZ_NO_STDIO
48 /*---------------------------------------------------*/
8b980e40 49@@ -1610,6 +1615,7 @@
984263bc
MD
50 }
51 #endif
52
53+#endif /* BZ_NO_COMPRESS */
54
55 /*-------------------------------------------------------------*/
56 /*--- end bzlib.c ---*/