diff options
author | Jinhui huang <huangjh.jy@cn.fujitsu.com> | 2019-04-03 14:29:50 +0800 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2019-04-03 15:55:22 +0200 |
commit | 96254b037f5f4d0657015d3988e18d48cb6a7205 (patch) | |
tree | b356f77192cfafe4651507e242bd7b3eed309780 /include | |
parent | 16558201e06f8782bcc3cf1daf9d10e711ef8bf5 (diff) |
syscall/pivot_root01.c: Fix compile error
1)The 'MS_REC' and 'MS_PRIVATE' flag are not defined on some old distros,
so add them into 'include/lapi/mount.h' to fix it.
2)Enclose macro with complex values in parentheses.
Signed-off-by: Jinhui huang <huangjh.jy@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/lapi/mount.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/lapi/mount.h b/include/lapi/mount.h index 74e85c70e..6c41e45a2 100644 --- a/include/lapi/mount.h +++ b/include/lapi/mount.h @@ -19,8 +19,16 @@ #ifndef __MOUNT_H__ #define __MOUNT_H__ +#ifndef MS_REC +#define MS_REC 16384 +#endif + +#ifndef MS_PRIVATE +#define MS_PRIVATE (1<<18) +#endif + #ifndef MS_STRICTATIME -#define MS_STRICTATIME 1 << 24 +#define MS_STRICTATIME (1 << 24) #endif #ifndef MNT_DETACH |