From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V40gE-0003Sa-Su for ltp-list@lists.sourceforge.net; Tue, 30 Jul 2013 03:32:58 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1V40gD-0006hS-0Q for ltp-list@lists.sourceforge.net; Tue, 30 Jul 2013 03:32:58 +0000 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r6U3WnLY024328 for ; Tue, 30 Jul 2013 11:32:49 +0800 Message-ID: <51F7338D.4060804@cn.fujitsu.com> Date: Tue, 30 Jul 2013 11:31:25 +0800 From: DAN LI MIME-Version: 1.0 Subject: [LTP] [PATCH] mount/mount06.c: fix a compile error List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: LTP list 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 --- 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 ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list