Skip to content

Commit

Permalink
Fix the build on non-Linux systems
Browse files Browse the repository at this point in the history
It turns out, we're never reading from the signalfd() which is causing it to
remain readable forever.  I'll fix this up but I thought I'd commit this fix
in the interim.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5194 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
aliguori committed Sep 11, 2008
1 parent d84763b commit da3d9c5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compatfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@

#include <signal.h>

#if defined(__linux__) && !defined(SYS_signalfd)
struct signalfd_siginfo {
struct qemu_signalfd_siginfo {
uint32_t ssi_signo;
uint8_t pad[124];
};
#else
#include <linux/signalfd.h>
#endif

int qemu_signalfd(const sigset_t *mask);

Expand Down

0 comments on commit da3d9c5

Please sign in to comment.