diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-11 03:09:05 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-11 03:09:05 +0000 |
commit | b4278a33a965c9c950574c829265edd018dbe4fc (patch) | |
tree | c6410295b7270b93ffab84419419b9b05586e370 /coreutils/fold.c | |
parent | 9ce34d9eb4a006d94cb631c54a5f1bda9b79356f (diff) | |
download | busybox-w32-b4278a33a965c9c950574c829265edd018dbe4fc.tar.gz busybox-w32-b4278a33a965c9c950574c829265edd018dbe4fc.tar.bz2 busybox-w32-b4278a33a965c9c950574c829265edd018dbe4fc.zip |
Add build options to control SuS compatability, allows numeric
option handling to be disabled.
Defaults to enabled, so no changes in default behaviour
git-svn-id: svn://busybox.net/trunk/busybox@12835 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/fold.c')
-rw-r--r-- | coreutils/fold.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c index 8f74ed88d..ee0fdc250 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -52,6 +52,8 @@ extern int fold_main(int argc, char **argv) | |||
52 | int i; | 52 | int i; |
53 | int errs = 0; | 53 | int errs = 0; |
54 | 54 | ||
55 | |||
56 | #ifdef CONFIG_FEATURE_SUSv2_OBSOLETE | ||
55 | /* Turn any numeric options into -w options. */ | 57 | /* Turn any numeric options into -w options. */ |
56 | for (i = 1; i < argc; i++) { | 58 | for (i = 1; i < argc; i++) { |
57 | char const *a = argv[i]; | 59 | char const *a = argv[i]; |
@@ -69,6 +71,7 @@ extern int fold_main(int argc, char **argv) | |||
69 | } | 71 | } |
70 | } | 72 | } |
71 | } | 73 | } |
74 | #endif | ||
72 | 75 | ||
73 | flags = bb_getopt_ulflags(argc, argv, "bsw:", &w_opt); | 76 | flags = bb_getopt_ulflags(argc, argv, "bsw:", &w_opt); |
74 | if (flags & FLAG_WIDTH) | 77 | if (flags & FLAG_WIDTH) |