aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-20 06:14:08 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-20 06:14:08 +0000
commitb59ae6c5acd924f88fc9cb4285ed283f27c65194 (patch)
tree49d1bb722d95eb1aded6b5d354ac86e56c481c10 /archival/gzip.c
parent59d90b8337e20463074c14f5215e7f2fdeb800ad (diff)
downloadbusybox-w32-b59ae6c5acd924f88fc9cb4285ed283f27c65194.tar.gz
busybox-w32-b59ae6c5acd924f88fc9cb4285ed283f27c65194.tar.bz2
busybox-w32-b59ae6c5acd924f88fc9cb4285ed283f27c65194.zip
It turns out that DODMALLOC was broken when I reorganized busybox.h
header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 3cbef4ec1..6c058d2b6 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -29,11 +29,6 @@
29 * 29 *
30 */ 30 */
31 31
32#include "busybox.h"
33#define BB_DECLARE_EXTERN
34#define bb_need_memory_exhausted
35#include "messages.c"
36
37/* These defines are very important for BusyBox. Without these, 32/* These defines are very important for BusyBox. Without these,
38 * huge chunks of ram are pre-allocated making the BusyBox bss 33 * huge chunks of ram are pre-allocated making the BusyBox bss
39 * size Freaking Huge(tm), which is a bad thing.*/ 34 * size Freaking Huge(tm), which is a bad thing.*/
@@ -43,9 +38,15 @@
43/* I don't like nested includes, but the string and io functions are used 38/* I don't like nested includes, but the string and io functions are used
44 * too often 39 * too often
45 */ 40 */
41#include <stdlib.h>
46#include <stdio.h> 42#include <stdio.h>
47#include <string.h> 43#include <string.h>
48#include <unistd.h> 44#include <unistd.h>
45#include "busybox.h"
46#define BB_DECLARE_EXTERN
47#define bb_need_memory_exhausted
48#include "messages.c"
49
49#define memzero(s, n) memset ((void *)(s), 0, (n)) 50#define memzero(s, n) memset ((void *)(s), 0, (n))
50 51
51#ifndef RETSIGTYPE 52#ifndef RETSIGTYPE
@@ -1628,12 +1629,6 @@ ulg deflate()
1628# include <unistd.h> 1629# include <unistd.h>
1629#endif 1630#endif
1630 1631
1631#if defined(STDC_HEADERS) || !defined(NO_STDLIB_H)
1632# include <stdlib.h>
1633#else
1634extern int errno;
1635#endif
1636
1637#if defined(DIRENT) 1632#if defined(DIRENT)
1638# include <dirent.h> 1633# include <dirent.h>
1639typedef struct dirent dir_type; 1634typedef struct dirent dir_type;
@@ -3098,12 +3093,6 @@ local void set_file_type()
3098# include <fcntl.h> 3093# include <fcntl.h>
3099#endif 3094#endif
3100 3095
3101#if defined(STDC_HEADERS) || !defined(NO_STDLIB_H)
3102# include <stdlib.h>
3103#else
3104extern int errno;
3105#endif
3106
3107/* =========================================================================== 3096/* ===========================================================================
3108 * Copy input to output unchanged: zcat == cat with --force. 3097 * Copy input to output unchanged: zcat == cat with --force.
3109 * IN assertion: insize bytes have already been read in inbuf. 3098 * IN assertion: insize bytes have already been read in inbuf.