提交 6f11f013 编写于 作者: S Stefan Weil 提交者: Riku Voipio

linux-user: Fix compilation for "old" linux versions

Debian Lenny and other installations with older linux versions
failed to compile linux-user because some CLONE_xxx macros are
undefined.
Signed-off-by: NStefan Weil <weil@mail.berlios.de>
Signed-off-by: NRiku Voipio <riku.voipio@iki.fi>
上级 08ab2ccb
...@@ -477,12 +477,24 @@ UNUSED static struct flags clone_flags[] = { ...@@ -477,12 +477,24 @@ UNUSED static struct flags clone_flags[] = {
FLAG_GENERIC(CLONE_DETACHED), FLAG_GENERIC(CLONE_DETACHED),
FLAG_GENERIC(CLONE_UNTRACED), FLAG_GENERIC(CLONE_UNTRACED),
FLAG_GENERIC(CLONE_CHILD_SETTID), FLAG_GENERIC(CLONE_CHILD_SETTID),
#if defined(CLONE_NEWUTS)
FLAG_GENERIC(CLONE_NEWUTS), FLAG_GENERIC(CLONE_NEWUTS),
#endif
#if defined(CLONE_NEWIPC)
FLAG_GENERIC(CLONE_NEWIPC), FLAG_GENERIC(CLONE_NEWIPC),
#endif
#if defined(CLONE_NEWUSER)
FLAG_GENERIC(CLONE_NEWUSER), FLAG_GENERIC(CLONE_NEWUSER),
#endif
#if defined(CLONE_NEWPID)
FLAG_GENERIC(CLONE_NEWPID), FLAG_GENERIC(CLONE_NEWPID),
#endif
#if defined(CLONE_NEWNET)
FLAG_GENERIC(CLONE_NEWNET), FLAG_GENERIC(CLONE_NEWNET),
#endif
#if defined(CLONE_IO)
FLAG_GENERIC(CLONE_IO), FLAG_GENERIC(CLONE_IO),
#endif
FLAG_END, FLAG_END,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册