Skip to contentSkip to conversation

mount/mount06.c: fix a compile error

PATCH Applied DAN LI 2 participants 2 messages Jul 31, 2013

lore
Share & tools
lore

DAN LI

author
#0 lore raw

PATCH v2 1/1 mount/mount06.c: fix a compile error

The definitions of MS_PRIVATE and MS_MOVE were only added to glibc headers in version 2.12.

If there are no definitions of these two flags, make it.

---
 testcases/kernel/syscalls/mount/mount06.c | 8 ++++++++
 1 file changed, 8 insertions(+)
testcases/kernel/syscalls/mount/mount06.c +8 -0
index acfb22d..fff6483 100644
@@ -31,6 +31,14 @@
 #include "usctest.h"
 #include "safe_macros.h"
 
+#ifndef MS_MOVE
+#define MS_MOVE	8192
+#endif
+
+#ifndef MS_PRIVATE
+#define MS_PRIVATE	(1 << 18)
+#endif
+
 #define MNTPOINT_SRC	"mnt_src"
 #define MNTPOINT_DES	"mnt_des"
 #define LINELENGTH	256
Signature · 12 lines
1.8.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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Applied
#1 lore raw
Quoted 7 lines · DAN LI

The definitions of MS_PRIVATE and MS_MOVE were only added to glibc headers in version 2.12.

If there are no definitions of these two flags, make it.

Applied, thank you.

Wanlong Gao

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list