From: Mike Frysinger Date: Sat, 27 Aug 2005 18:18:06 +0000 (-0000) Subject: some portability fixes by rmh in Bug 395 X-Git-Tag: 1_1_0~810 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=038b076e5592681eb870413f00829e8e984d2ce4;p=platform%2Fupstream%2Fbusybox.git some portability fixes by rmh in Bug 395 --- 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 #include #include -/* get page info */ -#include #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 #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) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)