From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq6eg-0008ER-Mi for qemu-devel@nongnu.org; Thu, 17 Feb 2011 11:24:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq6ef-0008Ay-7g for qemu-devel@nongnu.org; Thu, 17 Feb 2011 11:24:34 -0500 Received: from mel.act-europe.fr ([194.98.77.210]:35683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq6ef-00087x-3e for qemu-devel@nongnu.org; Thu, 17 Feb 2011 11:24:33 -0500 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 7E0F0CB0273 for ; Thu, 17 Feb 2011 17:24:11 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HDjdvTahWXRY for ; Thu, 17 Feb 2011 17:24:03 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) by mel.act-europe.fr (Postfix) with ESMTP id 4B3D7CB016C for ; Thu, 17 Feb 2011 17:24:02 +0100 (CET) From: Tristan Gingold Date: Thu, 17 Feb 2011 17:24:01 +0100 Message-Id: <1297959841-41235-1-git-send-email-gingold@adacore.com> Subject: [Qemu-devel] [PATCH] Use sigwait instead og sigwaitinfo. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fix compilation failure on Darwin. Signed-off-by: Tristan Gingold --- compatfd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compatfd.c b/compatfd.c index a7cebc4..5f7f355 100644 --- a/compatfd.c +++ b/compatfd.c @@ -33,9 +33,9 @@ static void *sigwait_compat(void *opaque) sigprocmask(SIG_BLOCK, &all, NULL); do { - siginfo_t siginfo; + int sig; - err = sigwaitinfo(&info->mask, &siginfo); + err = sigwait(&info->mask, &sig); if (err == -1 && errno == EINTR) { err = 0; continue; -- 1.7.3.GIT