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: 198219 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 34A822C0089 for ; Sun, 11 Nov 2012 08:48:17 +1100 (EST) Received: from localhost ([::1]:40152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXIuU-0002GI-RC for incoming@patchwork.ozlabs.org; Sat, 10 Nov 2012 16:48:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXIuM-0002Fz-6F for qemu-devel@nongnu.org; Sat, 10 Nov 2012 16:48:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXIuJ-0003ga-21 for qemu-devel@nongnu.org; Sat, 10 Nov 2012 16:48:06 -0500 Received: from 38.0.169.217.in-addr.arpa ([217.169.0.38]:52739 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXIuI-0003fb-S0 for qemu-devel@nongnu.org; Sat, 10 Nov 2012 16:48:02 -0500 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 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 217.169.0.38 Cc: Alex Barcelo , patches@linaro.org Subject: [Qemu-devel] [PATCH] coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack 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 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;