summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--procps/top.c2
-rw-r--r--procps/uptime.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/procps/top.c b/procps/top.c
index e6e4b5c..fcb570b 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -33,8 +33,6 @@
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
-/* get page info */
-#include <asm/page.h>
#include "busybox.h"
//#define FEATURE_CPU_USAGE_PERCENTAGE /* + 2k */
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)