From: Huang Ying <ying.hu...@intel.com> sys/signalfd.h (and struct signalfd_siginfo) is not available on some systems. So uses struct qemu_signalfd_siginfo from "compatfd.h" instead.
Signed-off-by: Huang Ying <ying.hu...@intel.com> Signed-off-by: Avi Kivity <a...@redhat.com> diff --git a/qemu-kvm.c b/qemu-kvm.c index 2a7fe3d..5effc25 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -27,7 +27,6 @@ #include <sys/mman.h> #include <sys/ioctl.h> #include "compatfd.h" -#include <sys/signalfd.h> #include <sys/prctl.h> #define false 0 @@ -1544,7 +1543,8 @@ static void sigbus_reraise(void) abort(); } -static void sigbus_handler(int n, struct signalfd_siginfo *siginfo, void *ctx) +static void sigbus_handler(int n, struct qemu_signalfd_siginfo *siginfo, + void *ctx) { #if defined(KVM_CAP_MCE) && defined(TARGET_I386) if (first_cpu->mcg_cap && siginfo->ssi_addr -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html