void-packages/srcpkgs/qemu/patches/musl-ppc64-pt_nip.patch
q66 bd05206403 qemu: add patches to fix build on ppc64(le)-musl
The musl headers are laid out differently, so it needs a couple
workarounds to get access to all the definitions.

This also fixes qemu-user-static.

[ci skip]

Closes: #11373 [via git-merge-pr]
2019-04-29 11:15:00 +02:00

12 lines
317 B
Diff

This include is necessary to get PT_NIP on musl.
--- linux-user/host/ppc64/hostdep.h
+++ linux-user/host/ppc64/hostdep.h
@@ -17,6 +17,8 @@
#ifndef __ASSEMBLER__
+#include <asm/ptrace.h>
+
/* These are defined by the safe-syscall.inc.S file */
extern char safe_syscall_start[];
extern char safe_syscall_end[];