diff options
author | Bernhard Reutner-Fischer | 2005-12-15 11:47:16 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2005-12-15 11:47:16 +0000 |
commit | 9a14bd04f879499df1cf3d88f6bf9a1257380768 (patch) | |
tree | 409f63f4f4460302559cfdd3ff507f61a554eed9 | |
parent | 73bffd4d964538e7c60bff2b609fb64c53f80c35 (diff) | |
download | busybox-9a14bd04f879499df1cf3d88f6bf9a1257380768.zip busybox-9a14bd04f879499df1cf3d88f6bf9a1257380768.tar.gz |
- Stephane Billiart writes:
Fix the compilation of head and tail.
thanks!
-rw-r--r-- | coreutils/head.c | 2 | ||||
-rw-r--r-- | coreutils/tail.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/head.c b/coreutils/head.c index 628dae5..eb0dcf2 100644 --- a/coreutils/head.c +++ b/coreutils/head.c @@ -85,7 +85,7 @@ int head_main(int argc, char **argv) #endif case 'n': p = optarg; -#if ENABLE_FEATURE_FANCY_HEAD +#if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD GET_COUNT: #endif count = bb_xgetularg10(p); diff --git a/coreutils/tail.c b/coreutils/tail.c index bda8ae0..49c00f3 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -121,7 +121,7 @@ int tail_main(int argc, char **argv) char *s, *buf; 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. */ if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-') /* && (isdigit)(argv[1][1]) */ @@ -142,7 +142,7 @@ int tail_main(int argc, char **argv) count_bytes = 1; /* FALLS THROUGH */ case 'n': -#if ENABLE_FEATURE_FANCY_TAIL +#if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_TAIL GET_COUNT: #endif count = bb_xgetlarg10_sfx(optarg, tail_suffixes); |