aboutsummaryrefslogtreecommitdiff
path: root/util-linux/umount.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-08 02:58:38 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-08 02:58:38 +0200
commitda49f5852481adb0b3fa0b5ccba93b266f271c35 (patch)
tree3ab27dafe02a3723658ab2649e8b3ea28b024ac5 /util-linux/umount.c
parent95cc814dbd37a4cb5a69b5eac80bd3e5173fe908 (diff)
downloadbusybox-w32-da49f5852481adb0b3fa0b5ccba93b266f271c35.tar.gz
busybox-w32-da49f5852481adb0b3fa0b5ccba93b266f271c35.tar.bz2
busybox-w32-da49f5852481adb0b3fa0b5ccba93b266f271c35.zip
move libc related stuff out of platform.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r--util-linux/umount.c31
1 files changed, 30 insertions, 1 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 5b22bfacc..a4b2bd087 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -7,8 +7,37 @@
7 * 7 *
8 * Licensed under GPL version 2, see file LICENSE in this tarball for details. 8 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
9 */ 9 */
10
11#include <mntent.h> 10#include <mntent.h>
11#include <sys/mount.h>
12/* Make sure we have all the new mount flags we actually try to use. */
13#ifndef MS_BIND
14# define MS_BIND (1 << 12)
15#endif
16#ifndef MS_MOVE
17# define MS_MOVE (1 << 13)
18#endif
19#ifndef MS_RECURSIVE
20# define MS_RECURSIVE (1 << 14)
21#endif
22#ifndef MS_SILENT
23# define MS_SILENT (1 << 15)
24#endif
25/* The shared subtree stuff, which went in around 2.6.15. */
26#ifndef MS_UNBINDABLE
27# define MS_UNBINDABLE (1 << 17)
28#endif
29#ifndef MS_PRIVATE
30# define MS_PRIVATE (1 << 18)
31#endif
32#ifndef MS_SLAVE
33# define MS_SLAVE (1 << 19)
34#endif
35#ifndef MS_SHARED
36# define MS_SHARED (1 << 20)
37#endif
38#ifndef MS_RELATIME
39# define MS_RELATIME (1 << 21)
40#endif
12#include "libbb.h" 41#include "libbb.h"
13 42
14#if defined(__dietlibc__) 43#if defined(__dietlibc__)