From 1fd6ab8f5d4b49cdb9cb677d7bed92e1c87d116c Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 20 Dec 2018 18:26:35 +0100 Subject: [PATCH] tor: fix build on ppc64 targets [ci skip] --- srcpkgs/tor/patches/ppc64.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/tor/patches/ppc64.patch diff --git a/srcpkgs/tor/patches/ppc64.patch b/srcpkgs/tor/patches/ppc64.patch new file mode 100644 index 00000000000..aef2ba51f90 --- /dev/null +++ b/srcpkgs/tor/patches/ppc64.patch @@ -0,0 +1,14 @@ +--- src/lib/sandbox/sandbox.c 2018-12-20 17:33:15.815307612 +0100 ++++ src/lib/sandbox/sandbox.c 2018-12-20 17:36:59.795797024 +0100 +@@ -111,6 +111,11 @@ + #define REG_SYSCALL 8 + #define M_SYSCALL regs[REG_SYSCALL] + ++#elif defined(__powerpc64__) ++ ++#define REG_SYSCALL 0 ++#define M_SYSCALL gp_regs[REG_SYSCALL] ++ + #endif /* defined(__i386__) || ... */ + + /**Determines if at least one sandbox is active.*/