aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-15 11:47:16 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-15 11:47:16 +0000
commit9a14bd04f879499df1cf3d88f6bf9a1257380768 (patch)
tree409f63f4f4460302559cfdd3ff507f61a554eed9 /coreutils/tail.c
parent73bffd4d964538e7c60bff2b609fb64c53f80c35 (diff)
downloadbusybox-w32-9a14bd04f879499df1cf3d88f6bf9a1257380768.tar.gz
busybox-w32-9a14bd04f879499df1cf3d88f6bf9a1257380768.tar.bz2
busybox-w32-9a14bd04f879499df1cf3d88f6bf9a1257380768.zip
- Stephane Billiart writes:
Fix the compilation of head and tail. thanks!
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r--coreutils/tail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index bda8ae04f..49c00f3c9 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -121,7 +121,7 @@ int tail_main(int argc, char **argv)
121 char *s, *buf; 121 char *s, *buf;
122 const char *fmt; 122 const char *fmt;
123 123
124#ifdef CONFIG_FEATURE_SUSv2 124#if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
125 /* Allow legacy syntax of an initial numeric option without -n. */ 125 /* Allow legacy syntax of an initial numeric option without -n. */
126 if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-') 126 if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-')
127 /* && (isdigit)(argv[1][1]) */ 127 /* && (isdigit)(argv[1][1]) */
@@ -142,7 +142,7 @@ int tail_main(int argc, char **argv)
142 count_bytes = 1; 142 count_bytes = 1;
143 /* FALLS THROUGH */ 143 /* FALLS THROUGH */
144 case 'n': 144 case 'n':
145#if ENABLE_FEATURE_FANCY_TAIL 145#if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
146 GET_COUNT: 146 GET_COUNT:
147#endif 147#endif
148 count = bb_xgetlarg10_sfx(optarg, tail_suffixes); 148 count = bb_xgetlarg10_sfx(optarg, tail_suffixes);