From patchwork Sat Nov 10 21:47:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 12802 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C3F8A23E13 for ; Sat, 10 Nov 2012 21:47:58 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 70935A1923C for ; Sat, 10 Nov 2012 21:47:58 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so7153501iej.11 for ; Sat, 10 Nov 2012 13:47:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=brza52HDOxWXA8UzlLBvX89zDKXkV/t0c0TMd1saix8=; b=Y53QwQpHnG/MZ/jrXl7APAL9NxOTMNRZk4nAWEsMm9HXdJhsfRgy2okFEt2ntAzPrw NkVIBd+mP7XZEsRs8BPZ3XOBUaXp9mrl8nQTiD2EE6wwpNco2Io0tGxYK2/IZCDEEqdt tAclDFLIaWTc+Hufe7xaGDPDagrWZh+2V8hcCIMprDy4libqKthpFQi0o8ep9FInvA2u Q0EbVr/IvVP1YLbH64ZrR1+owMpCe6LoXymRge9UNeDfclZ/aqoewDepitUI0KnQkWa5 FLHwywGY7iCrGeIOkeHdBfvIpqHMvAUOy/aoQ1OrZom4eOxifRs3GIUHXVDcv2qE8TMu G3Qw== Received: by 10.43.46.2 with SMTP id um2mr8409973icb.18.1352584077885; Sat, 10 Nov 2012 13:47:57 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp193402igt; Sat, 10 Nov 2012 13:47:57 -0800 (PST) Received: by 10.180.92.71 with SMTP id ck7mr8586024wib.20.1352584076630; Sat, 10 Nov 2012 13:47:56 -0800 (PST) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id y59si1335438wey.46.2012.11.10.13.47.55 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 10 Nov 2012 13:47:56 -0800 (PST) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1TXIu9-0001yc-0t; Sat, 10 Nov 2012 21:47:53 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alex Barcelo Subject: [PATCH] coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack Date: Sat, 10 Nov 2012 21:47:52 +0000 Message-Id: <1352584072-7574-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQlNM+pVUjuIwezrOMMubR8J3uPLSc/Z5iRcVp7/jSQpUxvqSgsKUGQCXu8TarqmQGNXLkMo Use the POSIX-specified stack_t type as the argument to sigaltstack() rather than the legacy struct sigaltstack. This allows us to compile on MacOSX with --with-coroutine=sigaltstack. Signed-off-by: Peter Maydell Reviewed-by: Stefan Hajnoczi --- Tested on Linux and MacOSX. coroutine-sigaltstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coroutine-sigaltstack.c b/coroutine-sigaltstack.c index 861e878..39dbaa5 100644 --- a/coroutine-sigaltstack.c +++ b/coroutine-sigaltstack.c @@ -171,8 +171,8 @@ static Coroutine *coroutine_new(void) CoroutineThreadState *coTS; struct sigaction sa; struct sigaction osa; - struct sigaltstack ss; - struct sigaltstack oss; + stack_t ss; + stack_t oss; sigset_t sigs; sigset_t osigs; jmp_buf old_env;