summaryrefslogtreecommitdiffhomepage
path: root/util-linux/switch_root.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/switch_root.c
parentd6e5083d16c940e36312f4a1b52317dcfc32c011 (diff)
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/switch_root.c')
-rw-r--r--util-linux/switch_root.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 9815a6d9e..8e564f0bf 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -6,17 +6,12 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <dirent.h>
+#include "busybox.h"
#include <fcntl.h>
-#include <stdio.h>
#include <string.h>
-#include <sys/mount.h>
-#include <sys/stat.h>
-#include <sys/types.h>
#include <sys/vfs.h>
#include <unistd.h>
-#include "busybox.h"
// Make up for header deficiencies.