summaryrefslogtreecommitdiff
path: root/coreutils/sleep.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-15 22:01:49 +0000
committerDenis Vlasenko2008-07-15 22:01:49 +0000
commit97faf531c81be075ecafb2ac83b17eae78cd2afb (patch)
treeb4e51950da0b124b808242d041927acabe11cc5d /coreutils/sleep.c
parent5e476bab9c6db89dfadc94a8c4fbf3082339fecf (diff)
downloadbusybox-97faf531c81be075ecafb2ac83b17eae78cd2afb.zip
busybox-97faf531c81be075ecafb2ac83b17eae78cd2afb.tar.gz
sleep: make fractional seconds separately selectable in .config
Diffstat (limited to 'coreutils/sleep.c')
-rw-r--r--coreutils/sleep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 93b178d..de18dd0 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 {