mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
some portability fixes by rmh in Bug 395
This commit is contained in:
parent
e1d9633e20
commit
038b076e55
@ -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 */
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user