[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Use sigwait instead og sigwaitinfo.
From: |
Tristan Gingold |
Subject: |
[Qemu-devel] [PATCH] Use sigwait instead og sigwaitinfo. |
Date: |
Thu, 17 Feb 2011 17:24:01 +0100 |
Fix compilation failure on Darwin.
Signed-off-by: Tristan Gingold <address@hidden>
---
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
- [Qemu-devel] [PATCH] Use sigwait instead og sigwaitinfo.,
Tristan Gingold <=