From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Peter Maydell Date: Sat, 10 Nov 2012 21:47:52 +0000 Message-Id: <1352584072-7574-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] coroutine-sigaltstack.c: Use stack_t, not struct sigaltstack List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alex Barcelo , patches@linaro.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 --- 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; -- 1.7.11.4