From patchwork Wed Apr 27 08:44:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 93003 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E77EAB6F07 for ; Wed, 27 Apr 2011 18:45:14 +1000 (EST) Received: from localhost ([::1]:58880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QF0Mw-0000Ea-EN for incoming@patchwork.ozlabs.org; Wed, 27 Apr 2011 04:45:10 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QF0Mm-0000CP-D3 for qemu-devel@nongnu.org; Wed, 27 Apr 2011 04:45:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QF0Mi-0002Xb-K6 for qemu-devel@nongnu.org; Wed, 27 Apr 2011 04:45:00 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:52032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QF0Mi-0002Wy-33 for qemu-devel@nongnu.org; Wed, 27 Apr 2011 04:44:56 -0400 Received: from flocke.fritz.box (p5086F67E.dip.t-dialin.net [80.134.246.126]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0LrUvB-1PpGMf06aT-013RdT; Wed, 27 Apr 2011 10:44:40 +0200 Received: from stefan by flocke.fritz.box with local (Exim 4.72) (envelope-from ) id 1QF0MQ-0001Cr-PB; Wed, 27 Apr 2011 10:44:38 +0200 From: Stefan Weil To: QEMU Developers Date: Wed, 27 Apr 2011 10:44:38 +0200 Message-Id: <1303893878-4609-1-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.7.2.5 X-Provags-ID: V02:K0:cF8VfmPzKWle73BVSov5qlXNBMxCayBcqmlm/FVYJxJ lpJtvzk14jTbK5EZu1bxFcbh2+8idCbEpY3ZghPiAYq6sbLXVU OuVPLmeud3qmB3qHm9s393Uwfsp33twunNzSGx878PSLW+IN+R KSIdzNcbnjRyS/x7+svkmpn4UDFyTxUpT4uWZqAVF6DKqdlAhS tq6Pg9KrZ3FOfTDim6TMGxRPKVyKLZpzFgsdLznCgKymaKJPT0 FtO1Yk1+xSqih X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.9 Cc: Riku Voipio , Laurent Vivier Subject: [Qemu-devel] [PATCH] linux-user: Fix compilation for "old" linux versions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- linux-user/strace.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 5d9bb08..fe9326a 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, };