From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeQEv-0002nh-7I for qemu-devel@nongnu.org; Fri, 30 Nov 2012 08:02:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeQEq-0003kR-Up for qemu-devel@nongnu.org; Fri, 30 Nov 2012 08:02:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeQEq-0003jS-NX for qemu-devel@nongnu.org; Fri, 30 Nov 2012 08:02:40 -0500 From: Kevin Wolf Date: Fri, 30 Nov 2012 14:02:29 +0100 Message-Id: <1354280549-5954-6-git-send-email-kwolf@redhat.com> In-Reply-To: <1354280549-5954-1-git-send-email-kwolf@redhat.com> References: <1354280549-5954-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 5/5] coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Peter Maydell 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 Signed-off-by: Kevin Wolf --- coroutine-sigaltstack.c | 4 ++-- 1 files 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; -- 1.7.6.5