From: Rob Landley Date: Fri, 16 Jun 2006 04:25:19 +0000 (-0000) Subject: Remove warnings caused by #include in platform.h. Apparently X-Git-Tag: 1_2_0~129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bc8c50351f304796dc5c54a0f3a4f4c7882ea9e4;p=oweals%2Fbusybox.git Remove warnings caused by #include in platform.h. Apparently we redefine a lot of stuff from standard header files... --- diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index 1f010c721..c959158c9 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -18,8 +18,6 @@ #include #include "busybox.h" -/* From linux/fs.h */ -#define BLKFLSBUF _IO(0x12,97) /* From */ #define FDFLUSH _IO(2,0x4b) diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index a9c4467d8..f958bdfc9 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c @@ -98,9 +98,6 @@ #include #include "busybox.h" -#define BLOCK_SIZE_BITS 10 -#define BLOCK_SIZE (1< +#include "busybox.h" #include #include #include -#include #include /* for _IO */ #include #include /* 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;