diff options
author | Rob Landley <rob@landley.net> | 2006-06-16 08:25:19 +0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-06-16 08:25:19 +0400 |
commit | bc8c50351f304796dc5c54a0f3a4f4c7882ea9e4 (patch) | |
tree | cf3245830d4f6feabb8a8c87592bdac501fbebc8 /util-linux/mkswap.c | |
parent | 9947a244d44edd3862694cce7a91e706b0cbd529 (diff) |
Remove warnings caused by #include <sys/mount.h> in platform.h. Apparently
we redefine a lot of stuff from standard header files...
Diffstat (limited to 'util-linux/mkswap.c')
-rw-r--r-- | util-linux/mkswap.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index 0054eca24..b48d1f036 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c @@ -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; |