From 22735abfc99240cb5bc614ee1ce688670a9599e2 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Fri, 7 Jun 2019 14:25:21 +0100 Subject: risu: Include on ppc64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To build the C parts of risu for ppc64le with recent glibc/kernel headers, we need to include sys/user.h to avoid a compile error, because sys/ucontext.h defines a struct which includes a pointer to 'struct pt_regs' but does not provide a definition of that struct. Signed-off-by: Peter Maydell Reviewed-by: Alex Bennée Reviewed-by: Sandipan Das Message-id: 20190607132521.9637-1-peter.maydell@linaro.org --- risu_ppc64.c | 2 ++ risu_reginfo_ppc64.c | 1 + 2 files changed, 3 insertions(+) diff --git a/risu_ppc64.c b/risu_ppc64.c index 83f8d1f..a3028f7 100644 --- a/risu_ppc64.c +++ b/risu_ppc64.c @@ -11,6 +11,8 @@ * based on Peter Maydell's risu_arm.c *****************************************************************************/ +#include + #include "risu.h" void advance_pc(void *vuc) diff --git a/risu_reginfo_ppc64.c b/risu_reginfo_ppc64.c index f9d2f0d..071c951 100644 --- a/risu_reginfo_ppc64.c +++ b/risu_reginfo_ppc64.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "risu.h" #include "risu_reginfo_ppc64.h" -- cgit v1.2.3