From c57e0dd3f76136e1acd40a1da83f592814f1d7b8 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 6 Oct 2023 12:50:19 +0200 Subject: [PATCH] emulators/qemu-devel: fix build on powerpc64* Same patch as for emulators/qemu. --- .../qemu-devel/files/patch-util_cpuinfo-ppc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 emulators/qemu-devel/files/patch-util_cpuinfo-ppc.c diff --git a/emulators/qemu-devel/files/patch-util_cpuinfo-ppc.c b/emulators/qemu-devel/files/patch-util_cpuinfo-ppc.c new file mode 100644 index 0000000000000..499de6e86db06 --- /dev/null +++ b/emulators/qemu-devel/files/patch-util_cpuinfo-ppc.c @@ -0,0 +1,18 @@ +--- util/cpuinfo-ppc.c.orig 2023-08-29 11:28:39 UTC ++++ util/cpuinfo-ppc.c +@@ -9,8 +9,14 @@ + #ifdef CONFIG_GETAUXVAL + # include + #else +-# include ++# ifdef __linux__ ++# include ++# endif + # include "elf.h" ++#endif ++ ++#ifndef PPC_FEATURE2_ARCH_3_1 ++# define PPC_FEATURE2_ARCH_3_1 0x00040000 + #endif + + unsigned cpuinfo;