|
From: DAN LI <li...@cn...> - 2013-07-30 03:32:58
|
The definitions of MS_PRIVATE and MS_MOVE were only added to glibc headers in version 2.12. If the version of glibc is older than 2.12, define these two flags. Signed-off-by: DAN LI <li...@cn...> --- testcases/kernel/syscalls/mount/mount06.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/mount/mount06.c b/testcases/kernel/syscalls/mount/mount06.c index acfb22d..ab1a472 100644 --- a/testcases/kernel/syscalls/mount/mount06.c +++ b/testcases/kernel/syscalls/mount/mount06.c @@ -31,6 +31,11 @@ #include "usctest.h" #include "safe_macros.h" +#if !(__GLIBC_PREREQ(2, 12)) +#define MS_MOVE 8192 +#define MS_PRIVATE (1 << 18) +#endif + #define MNTPOINT_SRC "mnt_src" #define MNTPOINT_DES "mnt_des" #define LINELENGTH 256 -- 1.7.1 |