Mercurial > hg > aboriginal
annotate sources/patches/busybox-wc.patch @ 996:bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 12 Mar 2010 02:52:58 -0600 |
parents | |
children |
rev | line source |
---|---|
996
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 --- busybox.4/coreutils/wc.c |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 +++ busybox.5/coreutils/wc.c |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 @@ -88,6 +88,8 @@ int wc_main(int argc UNUSED_PARAM, char |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 if (!argv[0]) { |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 *--argv = (char *) bb_msg_standard_input; |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 fname_fmt = "\n"; |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 + } |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 + if (!argv[1]) { |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 if (!((print_type-1) & print_type)) /* exactly one option? */ |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 start_fmt = "%"COUNT_FMT; |
bd6cc5603989
Fix busybox so the 2.6.33 mips kernel builds.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 } |