aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkswap.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-16 04:25:19 +0000
committerRob Landley <rob@landley.net>2006-06-16 04:25:19 +0000
commitbc8c50351f304796dc5c54a0f3a4f4c7882ea9e4 (patch)
treecf3245830d4f6feabb8a8c87592bdac501fbebc8 /util-linux/mkswap.c
parent9947a244d44edd3862694cce7a91e706b0cbd529 (diff)
downloadbusybox-w32-bc8c50351f304796dc5c54a0f3a4f4c7882ea9e4.tar.gz
busybox-w32-bc8c50351f304796dc5c54a0f3a4f4c7882ea9e4.tar.bz2
busybox-w32-bc8c50351f304796dc5c54a0f3a4f4c7882ea9e4.zip
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.c12
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 @@
35 * 35 *
36 */ 36 */
37 37
38#include <stdio.h> 38#include "busybox.h"
39#include <unistd.h> 39#include <unistd.h>
40#include <string.h> 40#include <string.h>
41#include <fcntl.h> 41#include <fcntl.h>
42#include <stdlib.h>
43#include <sys/ioctl.h> /* for _IO */ 42#include <sys/ioctl.h> /* for _IO */
44#include <sys/utsname.h> 43#include <sys/utsname.h>
45#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ 44#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
46 /* we also get PAGE_SIZE via getpagesize() */ 45 /* we also get PAGE_SIZE via getpagesize() */
47#include "busybox.h"
48
49#ifndef _IO
50/* pre-1.3.45 */
51enum { BLKGETSIZE = 0x1260 };
52#else
53/* same on i386, m68k, arm; different on alpha, mips, sparc, ppc */
54#define BLKGETSIZE _IO(0x12,96)
55#endif
56 46
57static char *device_name = NULL; 47static char *device_name = NULL;
58static int DEV = -1; 48static int DEV = -1;