2001-09-18 13:01:12 +00:00
|
|
|
$FreeBSD$
|
|
|
|
|
|
|
|
A patch to avoid linking into libstand compression routines from the bzip2
|
|
|
|
that never being used anyway, while bloat loader(8) by additional 15KB.
|
|
|
|
|
2002-02-01 16:33:40 +00:00
|
|
|
--- _bzlib.c 2001/09/13 12:20:50 1.1
|
|
|
|
+++ _bzlib.c 2001/09/13 12:29:24
|
|
|
|
@@ -73,8 +73,9 @@
|
|
|
|
bzBuffToBuffDecompress. Fixed.
|
|
|
|
--*/
|
2001-09-18 13:01:12 +00:00
|
|
|
|
2002-02-01 16:33:40 +00:00
|
|
|
-#include "bzlib_private.h"
|
|
|
|
+#include "_bzlib_private.h"
|
2001-09-18 13:01:12 +00:00
|
|
|
|
|
|
|
+#ifndef BZ_NO_COMPRESS
|
|
|
|
|
|
|
|
/*---------------------------------------------------*/
|
|
|
|
/*--- Compression stuff ---*/
|
2002-02-01 16:33:40 +00:00
|
|
|
@@ -130,6 +131,7 @@
|
2001-09-18 13:01:12 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#endif /* BZ_NO_COMPRESS */
|
|
|
|
|
|
|
|
/*---------------------------------------------------*/
|
|
|
|
static
|
2002-02-01 16:33:40 +00:00
|
|
|
@@ -156,6 +158,7 @@
|
2001-09-18 13:01:12 +00:00
|
|
|
if (addr != NULL) free ( addr );
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifndef BZ_NO_COMPRESS
|
|
|
|
|
|
|
|
/*---------------------------------------------------*/
|
|
|
|
static
|
2002-02-01 16:33:40 +00:00
|
|
|
@@ -528,6 +531,7 @@
|
2001-09-18 13:01:12 +00:00
|
|
|
return BZ_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#endif /* BZ_NO_COMPRESS */
|
|
|
|
|
|
|
|
/*---------------------------------------------------*/
|
|
|
|
/*--- Decompression stuff ---*/
|
2002-02-01 16:33:40 +00:00
|
|
|
@@ -898,6 +902,7 @@
|
2001-09-18 13:01:12 +00:00
|
|
|
return BZ_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifndef BZ_NO_COMPRESS
|
|
|
|
|
|
|
|
#ifndef BZ_NO_STDIO
|
|
|
|
/*---------------------------------------------------*/
|
2002-02-01 16:33:40 +00:00
|
|
|
@@ -1587,6 +1592,7 @@
|
2001-09-18 13:01:12 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#endif /* BZ_NO_COMPRESS */
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------*/
|
|
|
|
/*--- end bzlib.c ---*/
|