- Stephane Billiart writes:

Fix the compilation of head and tail.

  thanks!
This commit is contained in:
Bernhard Reutner-Fischer 2005-12-15 11:47:16 +00:00
parent 73bffd4d96
commit 9a14bd04f8
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ int head_main(int argc, char **argv)
#endif #endif
case 'n': case 'n':
p = optarg; p = optarg;
#if ENABLE_FEATURE_FANCY_HEAD #if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD
GET_COUNT: GET_COUNT:
#endif #endif
count = bb_xgetularg10(p); count = bb_xgetularg10(p);

View File

@ -121,7 +121,7 @@ int tail_main(int argc, char **argv)
char *s, *buf; char *s, *buf;
const char *fmt; const char *fmt;
#ifdef CONFIG_FEATURE_SUSv2 #if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
/* Allow legacy syntax of an initial numeric option without -n. */ /* Allow legacy syntax of an initial numeric option without -n. */
if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-') if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-')
/* && (isdigit)(argv[1][1]) */ /* && (isdigit)(argv[1][1]) */
@ -142,7 +142,7 @@ int tail_main(int argc, char **argv)
count_bytes = 1; count_bytes = 1;
/* FALLS THROUGH */ /* FALLS THROUGH */
case 'n': case 'n':
#if ENABLE_FEATURE_FANCY_TAIL #if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
GET_COUNT: GET_COUNT:
#endif #endif
count = bb_xgetlarg10_sfx(optarg, tail_suffixes); count = bb_xgetlarg10_sfx(optarg, tail_suffixes);