All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tristan Gingold <gingold@adacore.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Use sigwait instead og sigwaitinfo.
Date: Thu, 17 Feb 2011 17:24:01 +0100	[thread overview]
Message-ID: <1297959841-41235-1-git-send-email-gingold@adacore.com> (raw)

Fix compilation failure on Darwin.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
---
 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

             reply	other threads:[~2011-02-17 16:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 16:24 Tristan Gingold [this message]
2011-02-17 17:06 ` [Qemu-devel] Re: [PATCH] Use sigwait instead og sigwaitinfo Paolo Bonzini
2011-02-18 13:17 ` [Qemu-devel] [PATCH] Use sigwait instead of sigwaitinfo Tristan Gingold
2011-02-18 14:09   ` [Qemu-devel] " Paolo Bonzini
2011-02-18 15:34   ` Jan Kiszka
2011-02-18 15:50     ` Tristan Gingold
2011-02-18 16:16       ` Jan Kiszka
2011-02-18 18:15   ` [Qemu-devel] " Blue Swirl
2011-02-25 20:58   ` Blue Swirl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1297959841-41235-1-git-send-email-gingold@adacore.com \
    --to=gingold@adacore.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.