tor: fix build on ppc64 targets

[ci skip]
This commit is contained in:
q66 2018-12-20 18:26:35 +01:00 committed by Helmut Pozimski
parent 4f7fe5be6c
commit 1fd6ab8f5d

View 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.*/