mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
ocaml: drop unnecessary musl/ppc patch
[ci skip]
This commit is contained in:
parent
76ac30f283
commit
9db1aa536c
2 changed files with 11 additions and 19 deletions
11
srcpkgs/ocaml/patches/musl-ppc.patch
Normal file
11
srcpkgs/ocaml/patches/musl-ppc.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/runtime/signals_osdep.h
|
||||
+++ b/runtime/signals_osdep.h
|
||||
@@ -309,6 +309,8 @@
|
||||
|
||||
#elif defined(TARGET_power) && defined(SYS_elf)
|
||||
|
||||
+ #include <asm/ptrace.h>
|
||||
+
|
||||
#define DECLARE_SIGNAL_HANDLER(name) \
|
||||
static void name(int sig, struct sigcontext * context)
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
--- ocaml-4.04.2/runtime/signals_osdep.h
|
||||
+++ ocaml-4.04.2/runtime/signals_osdep.h
|
||||
@@ -297,11 +297,11 @@
|
||||
sigact.sa_flags = 0
|
||||
|
||||
typedef unsigned long context_reg;
|
||||
- #define CONTEXT_PC (context->regs->nip)
|
||||
- #define CONTEXT_EXCEPTION_POINTER (context->regs->gpr[29])
|
||||
- #define CONTEXT_YOUNG_LIMIT (context->regs->gpr[30])
|
||||
- #define CONTEXT_YOUNG_PTR (context->regs->gpr[31])
|
||||
- #define CONTEXT_SP (context->regs->gpr[1])
|
||||
+ #define CONTEXT_PC (context->gp_regs[32])
|
||||
+ #define CONTEXT_EXCEPTION_POINTER (context->gp_regs[29])
|
||||
+ #define CONTEXT_YOUNG_LIMIT (context->gp_regs[30])
|
||||
+ #define CONTEXT_YOUNG_PTR (context->gp_regs[31])
|
||||
+ #define CONTEXT_SP (context->gp_regs[1])
|
||||
|
||||
/****************** PowerPC, NetBSD */
|
||||
|
Loading…
Add table
Reference in a new issue