From: Stefan Weil Date: Wed, 27 Apr 2011 08:44:38 +0000 (+0200) Subject: linux-user: Fix compilation for "old" linux versions X-Git-Tag: v0.15.0-rc0~327 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6f11f013a5ef88c42ce2e9060bbaafb39676ca39;p=qemu-xen-4.6-testing.git 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: Stefan Weil Signed-off-by: Riku Voipio --- diff --git a/linux-user/strace.c b/linux-user/strace.c index 5d9bb085c..fe9326aa7 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -477,12 +477,24 @@ UNUSED static struct flags clone_flags[] = { FLAG_GENERIC(CLONE_DETACHED), FLAG_GENERIC(CLONE_UNTRACED), FLAG_GENERIC(CLONE_CHILD_SETTID), +#if defined(CLONE_NEWUTS) FLAG_GENERIC(CLONE_NEWUTS), +#endif +#if defined(CLONE_NEWIPC) FLAG_GENERIC(CLONE_NEWIPC), +#endif +#if defined(CLONE_NEWUSER) FLAG_GENERIC(CLONE_NEWUSER), +#endif +#if defined(CLONE_NEWPID) FLAG_GENERIC(CLONE_NEWPID), +#endif +#if defined(CLONE_NEWNET) FLAG_GENERIC(CLONE_NEWNET), +#endif +#if defined(CLONE_IO) FLAG_GENERIC(CLONE_IO), +#endif FLAG_END, };