← Commit list

bc8c50351

Rob Landley
Rob Landley
2006-06-16
SOURCE BUG Duration: 34s

Subject

Remove warnings caused by #include in platform.h. Apparently we redefine a lot of stuff from standard header files...

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 →

util-linux/freeramdisk.c+0 -2
@@ -18,8 +18,6 @@
#include <unistd.h>
#include "busybox.h"
-/* From linux/fs.h */
-#define BLKFLSBUF _IO(0x12,97)
/* From <linux/fd.h> */
#define FDFLUSH _IO(2,0x4b)
util-linux/fsck_minix.c+0 -3
@@ -98,9 +98,6 @@
#include <sys/param.h>
#include "busybox.h"
-#define BLOCK_SIZE_BITS 10
-#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
-
/*
* This is the original minix inode layout on disk.
* Note the 8-bit gid and atime and ctime.
util-linux/mkfs_minix.c+0 -3
@@ -151,9 +151,6 @@ struct minix_dir_entry {
char name[0];
};
-#define BLOCK_SIZE_BITS 10
-#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
-
#define NAME_MAX 255 /* # chars in a file name */
#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
util-linux/mkswap.c+1 -11
@@ -35,24 +35,14 @@
*
*/
-#include <stdio.h>
+#include "busybox.h"
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
-#include <stdlib.h>
#include <sys/ioctl.h> /* for _IO */
#include <sys/utsname.h>
#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */
-#include "busybox.h"
-
-#ifndef _IO
-/* pre-1.3.45 */
-enum { BLKGETSIZE = 0x1260 };
-#else
-/* same on i386, m68k, arm; different on alpha, mips, sparc, ppc */
-#define BLKGETSIZE _IO(0x12,96)
-#endif
static char *device_name = NULL;
static int DEV = -1;