diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-12 16:55:56 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-12 16:55:56 +0000 |
commit | a2d61e761e66858d4d2d69f748756ad895efd139 (patch) | |
tree | ae9e85d1a6ae27e0acdeff9ed15a2d141a2de770 | |
parent | 5ec241d3b38054c72735ff448dd1f9bebce78d3d (diff) | |
download | busybox-w32-a2d61e761e66858d4d2d69f748756ad895efd139.tar.gz busybox-w32-a2d61e761e66858d4d2d69f748756ad895efd139.tar.bz2 busybox-w32-a2d61e761e66858d4d2d69f748756ad895efd139.zip |
Some compile fixes found by Larry Doolittle
-rw-r--r-- | Config.h | 2 | ||||
-rwxr-xr-x | applets/busybox.sh | 1 | ||||
-rwxr-xr-x | busybox.sh | 1 | ||||
-rw-r--r-- | utility.c | 8 |
4 files changed, 7 insertions, 5 deletions
@@ -327,11 +327,11 @@ | |||
327 | #endif | 327 | #endif |
328 | #endif | 328 | #endif |
329 | // | 329 | // |
330 | #ifdef BB_TAR | ||
330 | #ifdef BB_FEATURE_TAR_GZIP | 331 | #ifdef BB_FEATURE_TAR_GZIP |
331 | #ifndef BB_GUNZIP | 332 | #ifndef BB_GUNZIP |
332 | #define BB_GUNZIP | 333 | #define BB_GUNZIP |
333 | #endif | 334 | #endif |
334 | #endif | ||
335 | // | 335 | // |
336 | #if defined BB_MOUNT && defined BB_FEATURE_NFSMOUNT | 336 | #if defined BB_MOUNT && defined BB_FEATURE_NFSMOUNT |
337 | #define BB_NFSMOUNT | 337 | #define BB_NFSMOUNT |
diff --git a/applets/busybox.sh b/applets/busybox.sh index 22493bf59..6c91e539b 100755 --- a/applets/busybox.sh +++ b/applets/busybox.sh | |||
@@ -5,6 +5,7 @@ RAW=` \ | |||
5 | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ | 5 | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ |
6 | | tr '[:upper:]' '[:lower:]' | sort | 6 | | tr '[:upper:]' '[:lower:]' | sort |
7 | ` | 7 | ` |
8 | test "${RAW}" != "" || exit | ||
8 | cd ${2:-.} | 9 | cd ${2:-.} |
9 | # I added in the extra "ls" so only source files that | 10 | # I added in the extra "ls" so only source files that |
10 | # actually exist will show up in the compile list. | 11 | # actually exist will show up in the compile list. |
diff --git a/busybox.sh b/busybox.sh index 22493bf59..6c91e539b 100755 --- a/busybox.sh +++ b/busybox.sh | |||
@@ -5,6 +5,7 @@ RAW=` \ | |||
5 | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ | 5 | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ |
6 | | tr '[:upper:]' '[:lower:]' | sort | 6 | | tr '[:upper:]' '[:lower:]' | sort |
7 | ` | 7 | ` |
8 | test "${RAW}" != "" || exit | ||
8 | cd ${2:-.} | 9 | cd ${2:-.} |
9 | # I added in the extra "ls" so only source files that | 10 | # I added in the extra "ls" so only source files that |
10 | # actually exist will show up in the compile list. | 11 | # actually exist will show up in the compile list. |
@@ -142,7 +142,7 @@ extern void perror_msg_and_die(const char *s, ...) | |||
142 | exit(EXIT_FAILURE); | 142 | exit(EXIT_FAILURE); |
143 | } | 143 | } |
144 | 144 | ||
145 | #if defined BB_INIT | 145 | #if defined BB_INIT || defined BB_MKSWAP || defined BB_MOUNT |
146 | /* Returns kernel version encoded as major*65536 + minor*256 + patch, | 146 | /* Returns kernel version encoded as major*65536 + minor*256 + patch, |
147 | * so, for example, to check if the kernel is greater than 2.2.11: | 147 | * so, for example, to check if the kernel is greater than 2.2.11: |
148 | * if (get_kernel_revision() <= 2*65536+2*256+11) { <stuff> } | 148 | * if (get_kernel_revision() <= 2*65536+2*256+11) { <stuff> } |
@@ -536,7 +536,7 @@ const char *time_string(time_t timeVal) | |||
536 | } | 536 | } |
537 | #endif /* BB_TAR || BB_AR */ | 537 | #endif /* BB_TAR || BB_AR */ |
538 | 538 | ||
539 | #if defined BB_TAR || defined BB_CP_MV || defined BB_AR | 539 | #if defined BB_TAR || defined BB_CP_MV || defined BB_AR || defined BB_DD |
540 | /* | 540 | /* |
541 | * Write all of the supplied buffer out to a file. | 541 | * Write all of the supplied buffer out to a file. |
542 | * This does multiple writes as necessary. | 542 | * This does multiple writes as necessary. |
@@ -565,7 +565,7 @@ int full_write(int fd, const char *buf, int len) | |||
565 | #endif /* BB_TAR || BB_CP_MV || BB_AR */ | 565 | #endif /* BB_TAR || BB_CP_MV || BB_AR */ |
566 | 566 | ||
567 | 567 | ||
568 | #if defined BB_TAR || defined BB_TAIL || defined BB_AR || defined BB_SH || defined BB_CP_MV | 568 | #if defined BB_TAR || defined BB_TAIL || defined BB_AR || defined BB_SH || defined BB_CP_MV || defined BB_DD |
569 | /* | 569 | /* |
570 | * Read all of the supplied buffer from a file. | 570 | * Read all of the supplied buffer from a file. |
571 | * This does multiple reads as necessary. | 571 | * This does multiple reads as necessary. |
@@ -866,7 +866,7 @@ extern int parse_mode(const char *s, mode_t * theMode) | |||
866 | 866 | ||
867 | #if defined BB_CHMOD_CHOWN_CHGRP || defined BB_PS || defined BB_LS \ | 867 | #if defined BB_CHMOD_CHOWN_CHGRP || defined BB_PS || defined BB_LS \ |
868 | || defined BB_TAR || defined BB_ID || defined BB_LOGGER \ | 868 | || defined BB_TAR || defined BB_ID || defined BB_LOGGER \ |
869 | || defined BB_LOGNAME || defined BB_WHOAMI | 869 | || defined BB_LOGNAME || defined BB_WHOAMI || defined BB_SH |
870 | 870 | ||
871 | /* This parses entries in /etc/passwd and /etc/group. This is desirable | 871 | /* This parses entries in /etc/passwd and /etc/group. This is desirable |
872 | * for BusyBox, since we want to avoid using the glibc NSS stuff, which | 872 | * for BusyBox, since we want to avoid using the glibc NSS stuff, which |