[BusyBox-cvs] svn commit: trunk/busybox/procps
vapier at busybox.net
vapier at busybox.net
Sat Aug 27 18:18:07 UTC 2005
Author: vapier
Date: 2005-08-27 12:18:06 -0600 (Sat, 27 Aug 2005)
New Revision: 11266
Log:
some portability fixes by rmh in Bug 395
Modified:
trunk/busybox/procps/top.c
trunk/busybox/procps/uptime.c
Changeset:
Modified: trunk/busybox/procps/top.c
===================================================================
--- trunk/busybox/procps/top.c 2005-08-27 17:42:24 UTC (rev 11265)
+++ trunk/busybox/procps/top.c 2005-08-27 18:18:06 UTC (rev 11266)
@@ -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 */
Modified: trunk/busybox/procps/uptime.c
===================================================================
--- trunk/busybox/procps/uptime.c 2005-08-27 17:42:24 UTC (rev 11265)
+++ trunk/busybox/procps/uptime.c 2005-08-27 18:18:06 UTC (rev 11266)
@@ -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)
More information about the busybox-cvs
mailing list