mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
tor: fix build on ppc64 targets
[ci skip]
This commit is contained in:
parent
4f7fe5be6c
commit
1fd6ab8f5d
1 changed files with 14 additions and 0 deletions
14
srcpkgs/tor/patches/ppc64.patch
Normal file
14
srcpkgs/tor/patches/ppc64.patch
Normal file
|
@ -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.*/
|
Loading…
Add table
Reference in a new issue