Fix compilation failure on Darwin.
Signed-off-by: Tristan Gingold <[email protected]>
---
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