← Commit list

038b076e5

Mike Frysinger
Mike Frysinger
2005-08-27
SOURCE BUG Duration: 6s

Subject

some portability fixes by rmh in Bug 395

SOURCE BUG

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)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/top.c+0 -2
@@ -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 */
procps/uptime.c+3 -1
@@ -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)