Use ether_crc32_le and ether_crc32_be.
[dragonfly/netmp.git] / lib / libstand / bzlib.c.diff
blobb346c0f2434ce3b02555d1523661b3f93e86ebe4
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 $
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 --- _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 --*/
13 -#include "bzlib_private.h"
14 +#include "_bzlib_private.h"
16 +#ifndef BZ_NO_COMPRESS
18 /*---------------------------------------------------*/
19 /*--- Compression stuff ---*/
20 @@ -130,6 +131,7 @@
22 #endif
24 +#endif /* BZ_NO_COMPRESS */
26 /*---------------------------------------------------*/
27 static
28 @@ -156,6 +158,7 @@
29 if (addr != NULL) free ( addr );
32 +#ifndef BZ_NO_COMPRESS
34 /*---------------------------------------------------*/
35 static
36 @@ -528,6 +531,7 @@
37 return BZ_OK;
40 +#endif /* BZ_NO_COMPRESS */
42 /*---------------------------------------------------*/
43 /*--- Decompression stuff ---*/
44 @@ -898,6 +902,7 @@
45 return BZ_OK;
48 +#ifndef BZ_NO_COMPRESS
50 #ifndef BZ_NO_STDIO
51 /*---------------------------------------------------*/
52 @@ -1587,6 +1592,7 @@
54 #endif
56 +#endif /* BZ_NO_COMPRESS */
58 /*-------------------------------------------------------------*/
59 /*--- end bzlib.c ---*/