From bfd81bcedca6acae8951a4dbcd4f45933e5f0473 Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 22 May 2016 05:30:37 -0400 Subject: [PATCH] block.c: Use instead of defining mount flags ourselves Let's use the cannonical source of mount flags instead of defining the flags ourselves. Signed-off-by: Daniel Dickinson --- block.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/block.c b/block.c index a6295a5..397db0f 100644 --- a/block.c +++ b/block.c @@ -29,6 +29,8 @@ #include #include +#include + #include #include @@ -147,18 +149,6 @@ struct mount_flag { int32_t flag; }; -#ifndef MS_DIRSYNC -# define MS_DIRSYNC (1 << 7) -#endif - -#ifndef MS_RELATIME -# define MS_RELATIME (1 << 21) -#endif - -#ifndef MS_STRICTATIME -# define MS_STRICTATIME (1 << 24) -#endif - static const struct mount_flag mount_flags[] = { { "sync", MS_SYNCHRONOUS }, { "async", ~MS_SYNCHRONOUS }, -- 2.11.0