From 97faf531c81be075ecafb2ac83b17eae78cd2afb Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 15 Jul 2008 22:01:49 +0000 Subject: sleep: make fractional seconds separately selectable in .config --- coreutils/sleep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coreutils/sleep.c') diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 93b178d76..de18dd0db 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c @@ -23,7 +23,7 @@ /* This is a NOFORK applet. Be very careful! */ -#if ENABLE_FEATURE_FANCY_SLEEP +#if ENABLE_FEATURE_FANCY_SLEEP || ENABLE_FEATURE_FLOAT_SLEEP static const struct suffix_mult sfx[] = { { "s", 1 }, { "m", 60 }, @@ -36,7 +36,7 @@ static const struct suffix_mult sfx[] = { int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int sleep_main(int argc UNUSED_PARAM, char **argv) { -#if ENABLE_FEATURE_FANCY_SLEEP && ENABLE_DESKTOP +#if ENABLE_FEATURE_FLOAT_SLEEP double duration; struct timespec ts; #else @@ -47,7 +47,7 @@ int sleep_main(int argc UNUSED_PARAM, char **argv) if (!*argv) bb_show_usage(); -#if ENABLE_FEATURE_FANCY_SLEEP && ENABLE_DESKTOP +#if ENABLE_FEATURE_FLOAT_SLEEP duration = 0; do { -- cgit v1.2.3-55-g6feb