summaryrefslogtreecommitdiff
path: root/procps/uptime.c
diff options
context:
space:
mode:
authorMike Frysinger2005-08-27 18:18:06 +0000
committerMike Frysinger2005-08-27 18:18:06 +0000
commit038b076e5592681eb870413f00829e8e984d2ce4 (patch)
tree481558d96e646c63caee86475985db1904e9bea0 /procps/uptime.c
parente1d9633e20d8f3153602249441df916cd31f303f (diff)
downloadbusybox-038b076e5592681eb870413f00829e8e984d2ce4.zip
busybox-038b076e5592681eb870413f00829e8e984d2ce4.tar.gz
some portability fixes by rmh in Bug 395
Diffstat (limited to 'procps/uptime.c')
-rw-r--r--procps/uptime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/procps/uptime.c b/procps/uptime.c
index 38d58af..0042889 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -35,7 +35,9 @@
#include <stdlib.h>
#include "busybox.h"
-static const int FSHIFT = 16; /* nr of bits of precision */
+#ifndef FSHIFT
+# define FSHIFT 16 /* nr of bits of precision */
+#endif
#define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */
#define LOAD_INT(x) ((x) >> FSHIFT)
#define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)