summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-15 15:49:36 +0000
committerRob Landley <rob@landley.net>2006-06-15 15:49:36 +0000
commit22d26fc6ae2af584482deaf92f25bb6a7261ad78 (patch)
tree3e9e7c2b43314acdd1f4db7e3a89a3c69daf814a /util-linux/mount.c
parentd6e5083d16c940e36312f4a1b52317dcfc32c011 (diff)
downloadbusybox-w32-22d26fc6ae2af584482deaf92f25bb6a7261ad78.tar.gz
busybox-w32-22d26fc6ae2af584482deaf92f25bb6a7261ad78.tar.bz2
busybox-w32-22d26fc6ae2af584482deaf92f25bb6a7261ad78.zip
Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot of
fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index e1c1c601b..9225289b6 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -13,7 +13,7 @@
13 * bb_getopt_ulflags(); 13 * bb_getopt_ulflags();
14 */ 14 */
15 15
16/* Design notes: There is no spec for this. Remind me to write one. 16/* Design notes: There is no spec for mount. Remind me to write one.
17 17
18 mount_main() calls singlemount() which calls mount_it_now(). 18 mount_main() calls singlemount() which calls mount_it_now().
19 19
@@ -22,18 +22,14 @@
22 mount_it_now() does the actual mount. 22 mount_it_now() does the actual mount.
23*/ 23*/
24 24
25#include <limits.h> 25#include "busybox.h"
26#include <stdlib.h>
27#include <unistd.h> 26#include <unistd.h>
28#include <errno.h> 27#include <errno.h>
29#include <string.h> 28#include <string.h>
30#include <stdio.h>
31#include <mntent.h> 29#include <mntent.h>
32#include <ctype.h> 30#include <ctype.h>
33#include <sys/mount.h>
34#include <fcntl.h> // for CONFIG_FEATURE_MOUNT_LOOP 31#include <fcntl.h> // for CONFIG_FEATURE_MOUNT_LOOP
35#include <sys/ioctl.h> // for CONFIG_FEATURE_MOUNT_LOOP 32#include <sys/ioctl.h> // for CONFIG_FEATURE_MOUNT_LOOP
36#include "busybox.h"
37 33
38// These two aren't always defined in old headers 34// These two aren't always defined in old headers
39#ifndef MS_BIND 35#ifndef MS_BIND