diff options
Diffstat (limited to 'gzip.c')
-rw-r--r-- | gzip.c | 23 |
1 files changed, 6 insertions, 17 deletions
@@ -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 | ||
1634 | extern int errno; | ||
1635 | #endif | ||
1636 | |||
1637 | #if defined(DIRENT) | 1632 | #if defined(DIRENT) |
1638 | # include <dirent.h> | 1633 | # include <dirent.h> |
1639 | typedef struct dirent dir_type; | 1634 | typedef 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 | ||
3104 | extern 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. |