some portability fixes by rmh in Bug 395
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -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) | |