diff options
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r-- | util-linux/umount.c | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index 5b22bfa..a4b2bd0 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -7,8 +7,37 @@ * * Licensed under GPL version 2, see file LICENSE in this tarball for details. */ - #include <mntent.h> +#include <sys/mount.h> +/* Make sure we have all the new mount flags we actually try to use. */ +#ifndef MS_BIND +# define MS_BIND (1 << 12) +#endif +#ifndef MS_MOVE +# define MS_MOVE (1 << 13) +#endif +#ifndef MS_RECURSIVE +# define MS_RECURSIVE (1 << 14) +#endif +#ifndef MS_SILENT +# define MS_SILENT (1 << 15) +#endif +/* The shared subtree stuff, which went in around 2.6.15. */ +#ifndef MS_UNBINDABLE +# define MS_UNBINDABLE (1 << 17) +#endif +#ifndef MS_PRIVATE +# define MS_PRIVATE (1 << 18) +#endif +#ifndef MS_SLAVE +# define MS_SLAVE (1 << 19) +#endif +#ifndef MS_SHARED +# define MS_SHARED (1 << 20) +#endif +#ifndef MS_RELATIME +# define MS_RELATIME (1 << 21) +#endif #include "libbb.h" #if defined(__dietlibc__) |